(ObjectInputStream stream)
| 382 | // https://docs.oracle.com/javase/7/docs/platform/serialization/spec/input.html#2971), we emit a |
| 383 | // finding right in the readObject method. |
| 384 | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { |
| 385 | // Need to read in ourselves to initialize the sanitizer field. |
| 386 | stream.defaultReadObject(); |
| 387 | reportFindingIfEnabled(); |
| 388 | } |
| 389 | } |