aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-04-04 16:38:39 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-04-04 16:38:39 +0200
commit6f2f4aa5db7b4cbd9f88e02badf52bf7066b0cbc (patch)
treea1f31d03678eae96701fb65f512f91755c084578 /sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
parent0641857555a146b070edac44cc3608f2d1b15c07 (diff)
downloadsonarqube-6f2f4aa5db7b4cbd9f88e02badf52bf7066b0cbc.tar.gz
sonarqube-6f2f4aa5db7b4cbd9f88e02badf52bf7066b0cbc.zip
Use new PropertyDefinition API in CpdPlugin
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
index c8e47e469dd..07582732ed9 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ServerClient.java
@@ -119,10 +119,12 @@ public class ServerClient implements BatchComponent {
}
private String getLogin() {
- return settings.property(CoreProperties.LOGIN) != null ? settings.property(CoreProperties.LOGIN) : DEFAULT_LOGIN;
+ String login = settings.property(CoreProperties.LOGIN);
+ return login != null ? login : DEFAULT_LOGIN;
}
private String getPassword() {
- return settings.property(CoreProperties.PASSWORD) != null ? settings.property(CoreProperties.PASSWORD) : DEFAULT_PASSWORD;
+ String password = settings.property(CoreProperties.PASSWORD);
+ return password != null ? password : DEFAULT_PASSWORD;
}
}