improve description of "Inner class may be 'static'" inspection

This commit is contained in:
Bas Leijdekkers
2014-09-07 16:10:47 +02:00
parent 1bbb3db9b9
commit 1481f3bc56
3 changed files with 7 additions and 4 deletions
@@ -1290,7 +1290,7 @@ call.to.simple.getter.in.class.inline.quickfix=Inline call to getter
call.to.simple.setter.in.class.ignore.option=Ignore setter calls on other objects
call.to.private.setter.in.class.option=Only report when setter is private
call.to.simple.setter.in.class.inline.quickfix=Inline call to setter
make.static.quickfix=Make static
make.static.quickfix=Make 'static'
length.one.strings.in.concatenation.replace.quickfix=Replace with character
multiply.or.divide.by.power.of.two.replace.quickfix=Replace with shift
boolean.expression.can.be.simplified.problem.descriptor=<code>#ref</code> can be simplified to ''{0}'' #loc
@@ -2,6 +2,7 @@
<body>
Reports any anonymous classes which may safely be made into a named <b>static</b> inner class.
An anonymous class may be <b>static</b> if it doesn't explicitly reference its enclosing instance or local variables from its surrounding method.
<p>
A <b>static</b> inner class does not keep an implicit reference to its enclosing instance.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
<!-- tooltip end -->
@@ -1,8 +1,10 @@
<html>
<body>
Reports any inner classes which may safely be made
<b>static</b>. An inner class may be static if it doesn't reference
its enclosing class instance. A static inner class uses slightly less memory.
Reports any inner classes which may safely be made <b>static</b>.
An inner class may be <b>static</b> if it doesn't reference its enclosing instance.
<p>
A <b>static</b> inner class does not keep an implicit reference to its enclosing instance.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
<!-- tooltip end -->
<p>