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.

      AbstractClassWithoutAbstractMethod

      Best practice
      Medium

      This abstract class does not have any abstract methods

      Learn more

      AvoidUsingHardCodedIP

      Best practice
      Medium

      Do not hard code the IP address

      CheckResultSet

      Best practice
      Medium

      Always check the return of one of the navigation method (next

      ConstantsInInterface

      Best practice
      Medium

      Avoid constants in interfaces. Interfaces define types

      DefaultLabelNotLastInSwitchStmt

      Best practice
      Medium

      The default label should be the last label in a switch statement

      PositionLiteralsFirstInCaseInsensitiveComparisons

      Best practice
      Medium

      Position literals first in String comparisons for EqualsIgnoreCase

      PositionLiteralsFirstInComparisons

      Best practice
      Medium

      Position literals first in String comparisons

      PreserveStackTrace

      Best practice
      Medium

      New exception is thrown in catch block

      SwitchStmtsShouldHaveDefault

      Best practice
      Medium

      Switch statements should have a default label

      UseCollectionIsEmpty

      Best practice
      Medium

      Substitute calls and make them more efficient