]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3862 Fix quality flaw
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:41:36 +0000 (15:41 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:46:24 +0000 (15:46 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java

index 2fc904c4db17fe4ed7a5a746bd41de37daf02e30..f9d9c4bce849cf9cd38fd37683dec424ac2fcd4e 100644 (file)
@@ -106,7 +106,7 @@ public final class ResourceTypeTree implements BatchExtension, ServerExtension {
     public ResourceTypeTree build() {
       Collection<String> children = relations.values();
       for (ResourceType type : types) {
-        if (!children.contains(type)) {
+        if (!children.contains(type.getQualifier())) {
           root = type;
           break;
         }