All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.RS_READOBJECT_SYNC.html Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

The newest version!


RS: Class's readObject() method is synchronized (RS_READOBJECT_SYNC)


RS: Class's readObject() method is synchronized (RS_READOBJECT_SYNC)

This serializable class defines a readObject() which is synchronized.  By definition, an object created by deserialization is only reachable by one thread, and thus there is no need for readObject() to be synchronized.  If the readObject() method itself is causing the object to become visible to another thread, that is an example of very dubious coding style.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy