]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 19 Jul 2016 14:41:12 +0000 (16:41 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 19 Jul 2016 14:41:12 +0000 (16:41 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/component/VisitorsCrawler.java

index f390aa9ac36460efebbdfd79cf37885ac7a3416d..b89216d64ae05203ec847724ba9f325d0cbff48a 100644 (file)
@@ -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);
     }