-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f18ff13
commit 95ab345
Showing
7 changed files
with
65 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
=== on 21 Jan 2015, 17:47:31 Nicolas Peru wrote: | ||
\[~ann.campbell.2] I don't think this is a relevant for java as we already have \http://jira.sonarsource.com/browse/RSPEC-1123 | ||
|
||
=== on 22 Jan 2015, 07:41:48 Ann Campbell wrote: | ||
\[~nicolas.peru] does RSPEC-1123 set an issue when @Deprecated/@deprecated does not include explanatory text? | ||
|
||
=== on 11 May 2015, 09:20:36 Dinesh Bolkensteyn wrote: | ||
LGTM | ||
|
||
=== on 18 Jul 2013, 07:31:52 Dinesh Bolkensteyn wrote: | ||
Implemented by \http://jira.codehaus.org/browse/SONARJAVA-214 | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The `Obsolete` attribute can be applied with or without a message argument. Marking something `Obsolete` without including advice on why it's obsolete or what to use instead will lead maintainers to waste time trying to figure those things out. |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== Message | ||
|
||
Add an explanation. | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"title": "\"Obsolete\" attributes should include explanations" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
include::../description-dotnet.adoc[] | ||
|
||
== Noncompliant Code Example | ||
|
||
[source,vbnet] | ||
---- | ||
Public Class Car | ||
<Obsolete> ' Noncompliant | ||
Public Sub CrankEngine(Turns As Integer) | ||
' ... | ||
End Sub | ||
End Class | ||
---- | ||
|
||
== Compliant Solution | ||
|
||
[source,vbnet] | ||
---- | ||
Public Class Car | ||
<Obsolete("Replaced by the automatic starter")> | ||
Public Sub CrankEngine(Turns As Integer) | ||
' ... | ||
End Sub | ||
End Class | ||
---- | ||
|
||
ifdef::env-github,rspecator-view[] | ||
|
||
''' | ||
== Implementation Specification | ||
(visible only on this page) | ||
|
||
include::message.adoc[] | ||
|
||
''' | ||
== Comments And Links | ||
(visible only on this page) | ||
|
||
include::../comments-and-links.adoc[] | ||
endif::env-github,rspecator-view[] |