aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-01 13:48:59 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-01 13:48:59 +0200
commitcf818e127b54dbb9791e206874146c62b680a3f9 (patch)
treeb3b87485ac2b2779488bc3b6ed650298784bf4c1 /server/sonar-search
parentcb005882b404e49ea7f2a5a9c7f06c3c9f7038b2 (diff)
downloadsonarqube-cf818e127b54dbb9791e206874146c62b680a3f9.tar.gz
sonarqube-cf818e127b54dbb9791e206874146c62b680a3f9.zip
Fix some quality flaws
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
index 0fbb934c7c7..1abf733b66b 100644
--- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
+++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
@@ -58,7 +58,7 @@ public class SearchServer extends MonitoredProcess {
private final boolean isBlocking;
private Node node;
- private final Integer lock = new Integer(1);
+ private final Object lock = new Object();
@VisibleForTesting
public SearchServer(final Props props, boolean monitored, boolean blocking) {