resources.report.rules.findbugs.RS_READOBJECT_SYNC.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanity4j Show documentation
Show all versions of sanity4j Show documentation
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.
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