aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-04-18 18:38:06 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-04-18 18:38:06 +0200
commitfa3659c5725a26df504b4d52726970c015278a21 (patch)
treebfad612619ee42450881a1887475d67dfce065b1 /sonar-ws-client
parentcf4a0592c2c8c776117fe2c07afebf84e59e755a (diff)
downloadsonarqube-fa3659c5725a26df504b4d52726970c015278a21.tar.gz
sonarqube-fa3659c5725a26df504b4d52726970c015278a21.zip
SONAR-3755 Escape issue message
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java37
1 files changed, 25 insertions, 12 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java
index 09c5d06e50c..cc6314d18d5 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java
@@ -28,8 +28,8 @@ public class Issue extends Model {
private String key;
private String componentKey;
- private String ruleKey;
private String ruleRepositoryKey;
+ private String ruleKey;
private String severity;
private String title;
private String message;
@@ -61,21 +61,21 @@ public class Issue extends Model {
return this;
}
- public String getRuleKey() {
- return ruleKey;
+ public String getRuleRepositoryKey() {
+ return ruleRepositoryKey;
}
- public Issue setRuleKey(String ruleKey) {
- this.ruleKey = ruleKey;
+ public Issue setRuleRepositoryKey(String ruleRepositoryKey) {
+ this.ruleRepositoryKey = ruleRepositoryKey;
return this;
}
- public String getRuleRepositoryKey() {
- return ruleRepositoryKey;
+ public String getRuleKey() {
+ return ruleKey;
}
- public Issue setRuleRepositoryKey(String ruleRepositoryKey) {
- this.ruleRepositoryKey = ruleRepositoryKey;
+ public Issue setRuleKey(String ruleKey) {
+ this.ruleKey = ruleKey;
return this;
}
@@ -190,9 +190,22 @@ public class Issue extends Model {
@Override
public String toString() {
return new StringBuilder()
- .append(key)
+ .append("[key=").append(key).append("], ")
+ .append("[componentKey=").append(componentKey).append("], ")
+ .append("[ruleRepositoryKey=").append(ruleRepositoryKey).append("], ")
+ .append("[ruleKey=").append(ruleKey).append("], ")
+ .append("[severity=").append(severity).append("], ")
+ .append("[title=").append(title).append("], ")
+ .append("[message=").append(message).append("], ")
+ .append("[line=").append(line).append("], ")
+ .append("[cost=").append(cost).append("], ")
+ .append("[status=").append(status).append("], ")
+ .append("[resolution=").append(resolution).append("], ")
+ .append("[userLogin=").append(userLogin).append("], ")
+ .append("[assigneeLogin=").append(assigneeLogin).append("], ")
+ .append("[createdAt=").append(createdAt).append("], ")
+ .append("[updatedAt=").append(updatedAt).append("], ")
+ .append("[closedAt=").append(closedAt).append("]")
.toString();
}
-
-
}