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.

      InstantiationToGetClass

      Error prone
      Minor

      Avoid instantiating an object just to call getClass() on it; use the .class public member instead

      Learn more