mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
36 lines
916 B
HTML
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> |