-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARJAVA-3864 Update S6355 metadata (#3795)
- Loading branch information
1 parent
4ac959a
commit c8c5131
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 23 additions & 1 deletion
24
java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6355_java.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
<p>FIXME, see https://github.com/SonarSource/rspec/pull/290</p> | ||
<p>Since Java 9, <code>@Deprecated</code> has two additional arguments to the annotation:</p> | ||
<ul> | ||
<li> <code>since</code> allows you to describe when the deprecation took place </li> | ||
<li> <code>forRemoval</code>, indicates whether the deprecated element will be removed at some future date </li> | ||
</ul> | ||
<p>In order to ease the maintainers work, it is recommended to always add one or both of these arguments.</p> | ||
<p>This rule reports an issue when <code>@Deprecated</code> is used without any argument.</p> | ||
<h2>Noncompliant Code Example</h2> | ||
<pre> | ||
@Deprecated | ||
</pre> | ||
<h2>Compliant Solution</h2> | ||
<pre> | ||
@Deprecated(since="4.2", forRemoval=true) | ||
</pre> | ||
<h2>Exceptions</h2> | ||
<p>The members and methods of a deprecated class or interface are ignored by this rule. The classes and interfaces themselves are still subject to | ||
it.</p> | ||
<h3>See Also</h3> | ||
<ul> | ||
<li> {rule:java:S1123} </li> | ||
</ul> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters