aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}