Files
Yann Cébron 7bbd97677c [devkit] cleanup inspection descriptions
GitOrigin-RevId: d9bfdce9a581af49b9f743874a21d001dcc74403
2024-05-14 15:24:08 +00:00

36 lines
916 B
HTML

<html>
<body>
Reports classes annotated with the <code>@com.intellij.openapi.components.Service</code> annotation that are not final.
<p>
Suggests making a class final if it is concrete.</p>
<p><b>Example:</b></p>
<pre><code lang="kotlin">
// MyService.kt
@Service(Service.Level.APP)
open class MyService
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code lang="kotlin">
// MyService.kt
@Service(Service.Level.APP)
class MyService
</code></pre>
<p>
Suggests removing the <code>@Service</code> annotation if it is an abstract class or interface.
</p>
<p><b>Example:</b></p>
<pre><code lang="java">
// MyService.java
@Service(Service.Level.APP)
abstract class MyService {}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code lang="java">
// MyService.java
abstract class MyService {}
</code></pre>
<!-- tooltip end -->
<p><small>New in 2023.2</small>
</body>
</html>