mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
19 lines
593 B
HTML
19 lines
593 B
HTML
<html>
|
|
<body>
|
|
Reports <code>sealed</code> classes without an explicit <code>permits</code> list.
|
|
Sealed classes that only have subclasses in the same file are not required to have an explicit <code>permits</code> list.
|
|
By default, this inspection does not highlight in the editor, but only provides a fix.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
sealed class A {}
|
|
final class B extends A {}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
sealed class A permits B {}
|
|
final class B extends A {}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p><small>New in 2020.3</small></p>
|
|
</body>
|
|
</html> |