diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-02 18:18:07 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-02 18:18:07 +0200 |
commit | 1f5682409af97410aca5e545ccbd40b6b037e6a9 (patch) | |
tree | ba9f1fe3c26d994b9aaafe9a09d5cf528fc21a41 /sonar-ws-client/src/main/java/org/sonar/wsclient | |
parent | 6e38de82d91aed63e200f0b45f54a4a2a7875941 (diff) | |
download | sonarqube-1f5682409af97410aca5e545ccbd40b6b037e6a9.tar.gz sonarqube-1f5682409af97410aca5e545ccbd40b6b037e6a9.zip |
Fix new violations
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar/wsclient')
4 files changed, 8 insertions, 8 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasure.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasure.java index a755dfbf438..f2337bcdb7c 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasure.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasure.java @@ -34,7 +34,7 @@ public class ManualMeasure extends Model { private Date createdAt; private Date updatedAt; private String userLogin; - private String userName; + private String username; public ManualMeasure() { } @@ -102,12 +102,12 @@ public class ManualMeasure extends Model { return this; } - public String getUserName() { - return userName; + public String getUsername() { + return username; } - public ManualMeasure setUserName(String userName) { - this.userName = userName; + public ManualMeasure setUsername(String username) { + this.username = username; return this; } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureCreateQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureCreateQuery.java index b4c55497a96..dfa4edd735f 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureCreateQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureCreateQuery.java @@ -22,7 +22,7 @@ package org.sonar.wsclient.services; /** * @since 2.10 */ -public class ManualMeasureCreateQuery extends CreateQuery<ManualMeasure> { +public final class ManualMeasureCreateQuery extends CreateQuery<ManualMeasure> { private String resourceKey; private String metricKey; diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureDeleteQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureDeleteQuery.java index 1384eb9b6ce..74b3e591136 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureDeleteQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ManualMeasureDeleteQuery.java @@ -22,7 +22,7 @@ package org.sonar.wsclient.services; /** * @since 2.10 */ -public class ManualMeasureDeleteQuery extends DeleteQuery<ManualMeasure> { +public final class ManualMeasureDeleteQuery extends DeleteQuery<ManualMeasure> { private String resourceKey; private String metricKey; diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ManualMeasureUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ManualMeasureUnmarshaller.java index f3b1a2d7bf8..c873491d5eb 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ManualMeasureUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ManualMeasureUnmarshaller.java @@ -37,7 +37,7 @@ public class ManualMeasureUnmarshaller extends AbstractUnmarshaller<ManualMeasur .setCreatedAt(utils.getDateTime(json, "created_at")) .setUpdatedAt(utils.getDateTime(json, "updated_at")) .setUserLogin(utils.getString(json, "login")) - .setUserName(utils.getString(json, "username")) + .setUsername(utils.getString(json, "username")) .setValue(utils.getDouble(json, "val")) .setTextValue(utils.getString(json, "text")) ; |