facebook pixelJava Static Analysis Rules
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
      Medium

      Use block level rather than method level synchronization

      Learn more

      AvoidThreadGroup

      Unknown
      Medium

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

      BigIntegerInstantiation

      Unknown
      Medium

      Dont create instances of already existing BigInteger and BigDecimal.

      NonThreadSafeSingleton

      Unknown
      Medium

      Singleton is not thread safe

      OptimizableToArrayCall

      Unknown
      Medium

      This call to Collection.toArray() may be optimizable

      TooFewBranchesForASwitchStatement

      Unknown
      Medium

      A switch with less than three branches is inefficient

      UnsynchronizedStaticDateFormatter

      Unknown
      Medium

      Static DateFormatter objects should be accessed in a synchronized manner

      UseNotifyAllInsteadOfNotify

      Unknown
      Medium

      Call Thread.notifyAll() rather than Thread.notify()