mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Review: https://jetbrains.team/p/ij/reviews/98339 It's a concrete quick-fix GitOrigin-RevId: 3388021f0cde4cb49f8c447361c0d8b2fd08cafd
26 lines
799 B
HTML
26 lines
799 B
HTML
<html>
|
|
<body>
|
|
Reports deprecated functions and properties that do not have the <code>kotlin.ReplaceWith</code> argument in its
|
|
<code>kotlin.deprecated</code> annotation and suggests to add one based on their body.
|
|
<p>
|
|
Kotlin provides the <code>ReplaceWith</code> argument to replace deprecated declarations automatically.
|
|
It is recommended to use the argument to fix deprecation issues in code.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
@Deprecated("Use refined() instead.")
|
|
fun deprecated() = refined()
|
|
|
|
fun refined() = 42
|
|
</code></pre>
|
|
<p>The quick-fix adds the <code>ReplaceWith()</code> argument:</p>
|
|
<pre><code>
|
|
@Deprecated("Use refined() instead.", ReplaceWith("refined()"))
|
|
fun deprecated() = refined()
|
|
|
|
fun refined() = 42
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html>
|