aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-19 16:41:12 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-19 16:41:12 +0200
commitbb7a09800eb894465e302cab84c28a5a4a960f27 (patch)
treedc5785662c482a8e83fbc4a576c84c32d46a8348 /server
parentda3753ec1e4490fcee4ad7d1a25cf56176cc1924 (diff)
downloadsonarqube-bb7a09800eb894465e302cab84c28a5a4a960f27.tar.gz
sonarqube-bb7a09800eb894465e302cab84c28a5a4a960f27.zip
fix quality flaw
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java b/server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java
index f390aa9ac36..b89216d64ae 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java
@@ -156,6 +156,8 @@ public class VisitorsCrawler implements ComponentCrawler {
private static class MatchVisitorMaxDepth implements Predicate<VisitorWrapper> {
private static final Map<Component.Type, MatchVisitorMaxDepth> INSTANCES = buildInstances();
+ private final Component.Type type;
+
private static Map<Component.Type, MatchVisitorMaxDepth> buildInstances() {
ImmutableMap.Builder<Component.Type, MatchVisitorMaxDepth> builder = ImmutableMap.builder();
for (Component.Type type : Component.Type.values()) {
@@ -164,8 +166,6 @@ public class VisitorsCrawler implements ComponentCrawler {
return builder.build();
}
- private final Component.Type type;
-
private MatchVisitorMaxDepth(Component.Type type) {
this.type = requireNonNull(type);
}