mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
21 lines
515 B
HTML
21 lines
515 B
HTML
<html>
|
|
<body>
|
|
Reports utility classes that can be converted to enums.
|
|
<p>Some coding style guidelines require implementing utility classes as enums
|
|
to avoid code coverage issues in <code>private</code> constructors.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class StringUtils {
|
|
public static final String EMPTY = "";
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
enum StringUtils {
|
|
;
|
|
public static final String EMPTY = "";
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |