From ec5c44dd34ba4e77d43a0f6b67c9326a38c243dc Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 23 Feb 2015 21:51:43 +0100 Subject: Fix quality flaws --- .../src/main/java/org/sonar/wsclient/services/WSUtils.java | 2 +- .../src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-ws-client') diff --git a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java index 188204771b3..0c8dab2f8a9 100644 --- a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java +++ b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java @@ -31,7 +31,7 @@ import java.util.Set; */ public abstract class WSUtils { - private static WSUtils instance = null; + private static volatile WSUtils instance = null; public static void setInstance(WSUtils utils) { instance = utils; diff --git a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java index 094bc270cd3..654e72fbb98 100644 --- a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java +++ b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java @@ -28,7 +28,7 @@ public final class Unmarshallers { private Unmarshallers() { } - private static Map unmarshallers; + private static volatile Map unmarshallers; static { unmarshallers = new HashMap(); -- cgit v1.2.3