facebook pixelCodiga Analysis Java Rules, category unknown
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.

BooleanInstantiation

Unknown
Error

Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.

DontCallThreadRun

Unknown
Informational

Dont call Thread.run() explicitly

DoubleCheckedLocking

Unknown
Critical

Double checked locking is not thread safe in Java.

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()