mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: update inspection name and description (IDEA-271214)
GitOrigin-RevId: 6c3b065c026b0de4e3b9cdf881ac2427c912390f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
86bddaa568
commit
26d26d0caa
@@ -645,7 +645,7 @@ enum.switch.statement.which.misses.cases.display.name=Enum 'switch' statement th
|
||||
enum.switch.statement.which.misses.cases.option=Ignore switch statements with a default branch
|
||||
string.buffer.must.have.initial.capacity.display.name='StringBuilder' without initial capacity
|
||||
method.may.be.static.display.name=Method can be made 'static'
|
||||
class.initializer.may.be.static.display.name=Class initializer may be 'static'
|
||||
class.initializer.may.be.static.display.name=Instance initializer can be made 'static'
|
||||
class.initializer.option=Only warn when the class has one or more constructors
|
||||
class.initializer.move.code.to.constructor.quickfix=Move initializer code to constructor
|
||||
nested.switch.statement.display.name=Nested 'switch' statement
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports instance initializers which may be made <code>static</code>.
|
||||
Reports instance initializers which can be made <code>static</code> without producing any errors.
|
||||
<p>
|
||||
An instance initializer may be static if it does not reference any of its class' non-static members.
|
||||
Static initializers are executed once the class is resolved,
|
||||
Static initializers are executed once when the class is resolved,
|
||||
while instance initializers are executed on each instantiation of the class.</p>
|
||||
<p>This inspection doesn't report instance empty initializers and initializers in anonymous classes.
|
||||
<p><b>Example:</b></p>
|
||||
|
||||
Reference in New Issue
Block a user