mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prettify inspection descriptions
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>This inspection reports Runnable passed to Cleaner.register() capturing reference that leads to memory leak.
|
||||
This inspection reports Runnable passed to Cleaner.register() capturing reference that leads to memory leak.
|
||||
Possible sources of this problem:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Lambda using non static methods, fields or this itself</li>
|
||||
<li>Non static inner class (anonymous or not) always captures this reference</li>
|
||||
@@ -10,6 +9,6 @@ Possible sources of this problem:
|
||||
<li>Access to outer class non static members from non static inner class</li>
|
||||
</ul>
|
||||
<p>This inspection is available since Java 9 only.</p>
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Reports when <b>getClass()</b> method is called on <b>java.lang.Class</b> instance. This is usually a mistake as the result is
|
||||
Reports when <b>getClass()</b> method is called on <b>java.lang.Class</b> instance. This is usually a mistake as the result is
|
||||
always equivalent to <b>Class.class</b>. If it's mistake then the <b>getClass()</b> call should be removed and qualifier should be used
|
||||
directly. If the behavior is intended, then it's better to write <b>Class.class</b> explicitly to avoid confusion.
|
||||
</p>
|
||||
<!-- tooltip end -->
|
||||
<p><small>New in 2018.2</small></p>
|
||||
</body>
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
<body>
|
||||
Allows you to replace compile-time constant expression with its actual value (e.g. "2 + 2" with "4").
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,6 +5,6 @@ which accepts lambda instead. Converting an expression to lambda ensures that ex
|
||||
if it happens to be unused inside the method. E.g. <b>optional.orElse(createDefaultValue())</b> could be converted
|
||||
to <b>optional.orElseGet(this::createDefaultValue)</b>.
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Reports expressions with repeating pattern which could be replaced with Stream API for String.join.</p>
|
||||
Reports expressions with repeating pattern which could be replaced with Stream API for String.join.
|
||||
<!-- tooltip end -->
|
||||
<p>This inspection only reports if the project or module is configured to use a language level of 8 or higher.</p>
|
||||
<p><small>New in 2018.2</small></p>
|
||||
|
||||
@@ -12,6 +12,6 @@ the program could stuck. Example:
|
||||
}
|
||||
</pre>
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Reports redundant calls of <b>java.lang.Class</b> methods. E.g. <b>Xyz.class.isInstance(object)</b> could be replaced with <b>object instanceof Xyz</b>.</p>
|
||||
Reports redundant calls of <b>java.lang.Class</b> methods. E.g. <b>Xyz.class.isInstance(object)</b> could be replaced with <b>object instanceof Xyz</b>.
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.2</small>
|
||||
<p><small>New in 2018.2</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,6 +2,6 @@
|
||||
<body>
|
||||
Inspection reports unnecessary close of resource in the end of try-with-resources block
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,6 +6,6 @@ but probably removing via iterator or using <strong>removeIf</strong> method (si
|
||||
If you don't expect that <strong>remove</strong> will be called more than once in a loop, consider adding a <strong>break</strong> command
|
||||
after it.
|
||||
<!-- tooltip end -->
|
||||
<p><small>Since 2018.2</small></p>
|
||||
<p><small>New in 2018.2</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>This inspection reports local variable of wrapper type though all usages allowed to be primitive and count of unnecessary boxing/unboxing
|
||||
operations reduces</p>
|
||||
This inspection reports local variable of wrapper type though all usages allowed to be primitive and count of unnecessary boxing/unboxing
|
||||
operations reduces
|
||||
<!-- tooltip end -->
|
||||
<p>In some cases boxing can be source of significant performance penalty, especially in loops.</p>
|
||||
<p>
|
||||
|
||||
@@ -11,6 +11,6 @@ that catch block may silently ignore important VM exceptions like <b>NullPointer
|
||||
Also <b>catch</b> parameters named "expected" or "ok" are not reported inside test sources.
|
||||
</p>
|
||||
<!-- tooltip end -->
|
||||
<small>New in 2018.1</small>
|
||||
<p><small>New in 2018.1</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,6 +12,6 @@ Also this change may reduce compiled bytecode size which could be useful in some
|
||||
Use checkbox to skip warning when '?:' operator is suggested. In this case only '&&' and '||' suggestions
|
||||
will be highlighted. The fix action to replace with '?:' will still be available in the editor.
|
||||
</p>
|
||||
<small>Since 2018.2</small>
|
||||
<p><small>New in 2018.2</small></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,5 +4,6 @@ Reports static inner classes annotated with @Nested.
|
||||
<!-- tooltip end -->
|
||||
<p>
|
||||
<small>New in 2018.2</small>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user