diff options
Diffstat (limited to 'sonar-ws-client/src/main')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java | 10 | ||||
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java index 4e170124c6b..d077ac97495 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java @@ -33,7 +33,7 @@ public class Violation extends Model { private String resourceScope = null; private String resourceQualifier = null; private Date createdAt = null; - private boolean falsePositive; + private boolean switchedOff; private Long reviewId = null; public String getMessage() { @@ -180,16 +180,16 @@ public class Violation extends Model { /** * @since 2.8 */ - public Violation setFalsePositive(Boolean b) { - this.falsePositive = (b != null && b); + public Violation setSwitchedOff(Boolean b) { + this.switchedOff = (b != null && b); return this; } /** * @since 2.8 */ - public boolean isFalsePositive() { - return falsePositive; + public boolean isSwitchedOff() { + return switchedOff; } public Long getReviewId() { diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java index 45f692b582c..a73d4b3c4fa 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java @@ -33,7 +33,7 @@ public class ViolationUnmarshaller extends AbstractUnmarshaller<Violation> { violation.setLine(utils.getInteger(json, "line")); violation.setSeverity(utils.getString(json, "priority")); violation.setCreatedAt(utils.getDateTime(json, "createdAt")); - violation.setFalsePositive(utils.getBoolean(json, "falsePositive")); + violation.setSwitchedOff(utils.getBoolean(json, "switchedOff")); violation.setReviewId(utils.getLong(json, "review")); Object rule = utils.getField(json, "rule"); |