From ef3e590d1ba5372d825216f85816463fa8e50a99 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 1 Jul 2014 13:43:04 +0200 Subject: Fix some quality flaws --- .../org/sonar/wsclient/unmarshallers/ServerSetupUnmarshaller.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sonar-ws-client/src/main/java') 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 { 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 toModels(String json) { -- cgit v1.2.3