diff options
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) { |