aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-03-03 10:11:19 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-03-03 10:11:50 +0100
commit1516e18d0b5335d00b7754f8e64fec68468f7703 (patch)
treea02da0b58557b7b512e03f42d90681ac8d164131 /sonar-ws-client
parent7b5390aea6a8b1a7df1220ff563422d3583ea121 (diff)
downloadsonarqube-1516e18d0b5335d00b7754f8e64fec68468f7703.tar.gz
sonarqube-1516e18d0b5335d00b7754f8e64fec68468f7703.zip
Fix quality flaws
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/QualityGate.java2
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/internal/DefaultQualityGate.java5
2 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/QualityGate.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/QualityGate.java
index 3a2279e7467..eb336235449 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/QualityGate.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/QualityGate.java
@@ -24,7 +24,7 @@ package org.sonar.wsclient.qualitygate;
*/
public interface QualityGate {
- long id();
+ Long id();
String name();
}
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/internal/DefaultQualityGate.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/internal/DefaultQualityGate.java
index 0d86d899206..c964877238f 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/internal/DefaultQualityGate.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/qualitygate/internal/DefaultQualityGate.java
@@ -19,12 +19,11 @@
*/
package org.sonar.wsclient.qualitygate.internal;
+import org.sonar.wsclient.qualitygate.QualityGate;
import org.sonar.wsclient.unmarshallers.JsonUtils;
import java.util.Map;
-import org.sonar.wsclient.qualitygate.QualityGate;
-
public class DefaultQualityGate implements QualityGate {
private Map<String, String> json;
@@ -34,7 +33,7 @@ public class DefaultQualityGate implements QualityGate {
}
@Override
- public long id() {
+ public Long id() {
return JsonUtils.getLong(json, "id");
}