diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 21:51:43 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-23 21:51:43 +0100 |
commit | ec5c44dd34ba4e77d43a0f6b67c9326a38c243dc (patch) | |
tree | ab0007c9768c6f8f3550a8686e7c0d8742c7d4b5 /server/sonar-ws-client | |
parent | 1b2791924ef45c4b6a09d405deb3b1cfd5076798 (diff) | |
download | sonarqube-ec5c44dd34ba4e77d43a0f6b67c9326a38c243dc.tar.gz sonarqube-ec5c44dd34ba4e77d43a0f6b67c9326a38c243dc.zip |
Fix quality flaws
Diffstat (limited to 'server/sonar-ws-client')
-rw-r--r-- | server/sonar-ws-client/src/main/java/org/sonar/wsclient/services/WSUtils.java | 2 | ||||
-rw-r--r-- | server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java | 2 |
2 files changed, 2 insertions, 2 deletions
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<Class, Unmarshaller> unmarshallers; + private static volatile Map<Class, Unmarshaller> unmarshallers; static { unmarshallers = new HashMap<Class, Unmarshaller>(); |