![JAR search and dependency download from the Maven repository](/logo.png)
errorprone.bugpattern.ClassCanBeStatic.md Maven / Gradle / Ivy
The newest version!
An inner class should be static unless it references members of its enclosing
class. An inner class that is made non-static unnecessarily uses more memory and
does not make the intent of the class clear.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy