AvoidSynchronizedAtMethodLevel
Use block level rather than method level synchronization
The Codiga Code Analysis engine supports hundreds of rules for Java, checking that your code is safe and secure. Start using Codiga today to check your code and automate your code reviews to find issues in every pull request and merge with confidence.
Use block level rather than method level synchronization
Avoid using java.lang.ThreadGroup; it is not thread safe
Dont create instances of already existing BigInteger and BigDecimal.
Singleton is not thread safe
This call to Collection.toArray() may be optimizable
A switch with less than three branches is inefficient
Static DateFormatter objects should be accessed in a synchronized manner
Call Thread.notifyAll() rather than Thread.notify()
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.