Sign in
chromium
/
external
/
github.com
/
google
/
error-prone
/
master
/
.
/
docs
/
bugpattern
/
ClassCanBeStatic.md
blob: 38510925cfea0329bd294e69f61bd0ed63beb4f2 [
file
] [
log
] [
blame
] [
view
]
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
.