mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
20 lines
548 B
HTML
20 lines
548 B
HTML
<html>
|
|
<body>
|
|
Reports utility classes that aren't <code>final</code> or <code>abstract</code>.
|
|
<p>Utility classes have all fields and methods declared as <code>static</code>.
|
|
Making them <code>final</code> prevents them from being accidentally subclassed.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
public class UtilityClass {
|
|
public static void foo() {}
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
public final class UtilityClass {
|
|
public static void foo() {}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |