diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 13:43:04 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 13:51:23 +0200 |
commit | ef3e590d1ba5372d825216f85816463fa8e50a99 (patch) | |
tree | d43b93223e5440c3f4d8582eae406ff9863cc8a5 /sonar-ws-client | |
parent | cbe3819ae9e045049816761ff598ae5e74eac2e2 (diff) | |
download | sonarqube-ef3e590d1ba5372d825216f85816463fa8e50a99.tar.gz sonarqube-ef3e590d1ba5372d825216f85816463fa8e50a99.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java index 966d8b8c837..ae72b1324a9 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java @@ -31,10 +31,9 @@ public class ServerSetupUnmarshaller implements Unmarshaller<ServerSetup> { public ServerSetup toModel(String json) { WSUtils utils = WSUtils.getINSTANCE(); Object map = utils.parse(json); - ServerSetup server = new ServerSetup() - .setStatus(utils.getString(map, "status")) - .setMessage(utils.getString(map, "msg")); - return server; + return new ServerSetup() + .setStatus(utils.getString(map, "status")) + .setMessage(utils.getString(map, "msg")); } public List<ServerSetup> toModels(String json) { |