From 9c573f1b661e4a7c75c086c2aa376dcd436dd48b Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 5 Dec 2012 15:41:36 +0100 Subject: [PATCH] SONAR-3862 Fix quality flaw --- .../src/main/java/org/sonar/api/resources/ResourceTypeTree.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java index 2fc904c4db1..f9d9c4bce84 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java @@ -106,7 +106,7 @@ public final class ResourceTypeTree implements BatchExtension, ServerExtension { public ResourceTypeTree build() { Collection children = relations.values(); for (ResourceType type : types) { - if (!children.contains(type)) { + if (!children.contains(type.getQualifier())) { root = type; break; } -- 2.39.5