diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-06-02 12:32:21 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-06-07 20:10:33 +0400 |
commit | a1a430d2ebb3fcad1c816a57214bb057e5ad1560 (patch) | |
tree | 1439bfa44c9910cc420dd8c840ef1b0b2eee18eb /sonar-ws-client | |
parent | 39bca3376660b2ad6edbd4ec9fabf527a16ffe78 (diff) | |
download | sonarqube-a1a430d2ebb3fcad1c816a57214bb057e5ad1560.tar.gz sonarqube-a1a430d2ebb3fcad1c816a57214bb057e5ad1560.zip |
Fix violations
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/Review.java | 4 | ||||
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Review.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Review.java index 596b2763639..646e2b2a7a1 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Review.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Review.java @@ -143,6 +143,7 @@ public class Review extends Model { * @deprecated since 2.9. Use {@link #getFalsePositive()} instead. * @return the type */ + @Deprecated public String getType() { return type; } @@ -152,6 +153,7 @@ public class Review extends Model { * @param s * the type to set */ + @Deprecated public Review setType(String s) { this.type = s; // the following code is only here to ensure backward compatibility with 2.8 @@ -244,7 +246,7 @@ public class Review extends Model { this.falsePositive = falsePositive; return this; } - + /** * @since 2.9 * @return the violation id diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java index d1858cd242f..07cc0da834e 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java @@ -29,6 +29,9 @@ public class ReviewQuery extends Query<Review> { public static final String OUTPUT_PLAIN = "PLAIN"; public static final String OUTPUT_HTML = "HTML"; + /** + * @deprecated since 2.9, but kept for backward compatibility + */ @Deprecated private String reviewType; private Long id; @@ -49,6 +52,7 @@ public class ReviewQuery extends Query<Review> { * @deprecated since 2.9 * @return NULL */ + @Deprecated public String getReviewType() { return reviewType; } @@ -58,6 +62,7 @@ public class ReviewQuery extends Query<Review> { * @param reviewType * the reviewType to set */ + @Deprecated public ReviewQuery setReviewType(String reviewType) { this.reviewType = reviewType; return this; |