BACK TO LIST

Java rules

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.

AvoidSynchronizedAtMethodLevel

Unknown
Warning

Use block level rather than method level synchronization

Learn more

AvoidThreadGroup

Unknown
Warning

Avoid using java.lang.ThreadGroup; it is not thread safe

BigIntegerInstantiation

Unknown
Warning

Dont create instances of already existing BigInteger and BigDecimal.

NonThreadSafeSingleton

Unknown
Warning

Singleton is not thread safe

OptimizableToArrayCall

Unknown
Warning

This call to Collection.toArray() may be optimizable

TooFewBranchesForASwitchStatement

Unknown
Warning

A switch with less than three branches is inefficient

UnsynchronizedStaticDateFormatter

Unknown
Warning

Static DateFormatter objects should be accessed in a synchronized manner

UseNotifyAllInsteadOfNotify

Unknown
Warning

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.