mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve description of "Inner class may be 'static'" inspection
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user