aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-02-11 11:45:04 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-02-16 13:34:18 +0100
commit24839b644682909ac76a5736c0ff474e0a89daa1 (patch)
treed0bd87178829cd7b9d1a465d7d08ffbe1dfba0a8 /sonar-batch
parent82a84f73980555074f4a6a2de93cfd1428e78e13 (diff)
downloadsonarqube-24839b644682909ac76a5736c0ff474e0a89daa1.tar.gz
sonarqube-24839b644682909ac76a5736c0ff474e0a89daa1.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java
index 5333c767ee1..4ede40d4ed9 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/QualityGateProvider.java
@@ -84,7 +84,7 @@ public class QualityGateProvider extends ProviderAdapter {
private QualityGate fetch(String qualityGateSetting, ServerClient client, MetricFinder metricFinder) {
String jsonText = null;
try {
- long qGateId = Long.valueOf(qualityGateSetting);
+ long qGateId = Long.parseLong(qualityGateSetting);
jsonText = client.request(SHOW_URL + "?id=" + qGateId, false);
} catch (NumberFormatException configIsNameInsteadOfId) {
jsonText = client.request(SHOW_URL + "?name=" + qualityGateSetting, false);