From 1f5682409af97410aca5e545ccbd40b6b037e6a9 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 2 Aug 2011 18:18:07 +0200 Subject: Fix new violations --- .../main/java/org/sonar/wsclient/services/ManualMeasure.java | 10 +++++----- .../org/sonar/wsclient/services/ManualMeasureCreateQuery.java | 2 +- .../org/sonar/wsclient/services/ManualMeasureDeleteQuery.java | 2 +- .../wsclient/unmarshallers/ManualMeasureUnmarshaller.java | 2 +- .../wsclient/unmarshallers/ManualMeasureUnmarshallerTest.java | 4 +--- 5 files changed, 9 insertions(+), 11 deletions(-) (limited to 'sonar-ws-client/src') 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 { +public final class ManualMeasureCreateQuery extends CreateQuery { 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 { +public final class ManualMeasureDeleteQuery extends DeleteQuery { 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