summaryrefslogtreecommitdiffstats
path: root/server/sonar-ws-client
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-23 21:51:43 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-23 21:51:43 +0100
commitec5c44dd34ba4e77d43a0f6b67c9326a38c243dc (patch)
treeab0007c9768c6f8f3550a8686e7c0d8742c7d4b5 /server/sonar-ws-client
parent1b2791924ef45c4b6a09d405deb3b1cfd5076798 (diff)
downloadsonarqube-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.java2
-rw-r--r--server/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/Unmarshallers.java2
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>();