mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
31 lines
666 B
HTML
31 lines
666 B
HTML
<html>
|
|
<body>
|
|
Reports any unnecessary semicolons, including semicolons that are used between class members, inside block statements, or after
|
|
class definitions.
|
|
<p>Even though these semicolons are valid in Java, they are redundant and may be removed.</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
class C {
|
|
;
|
|
void m() throws Exception {
|
|
try (AutoCloseable r1 = createAutoCloseable();) {
|
|
;
|
|
}
|
|
}
|
|
;
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
class C {
|
|
void m() throws Exception {
|
|
try (AutoCloseable r1 = createAutoCloseable()) {
|
|
}
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
|
|
</body>
|
|
</html> |