aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-12-05 15:41:36 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-12-05 15:46:24 +0100
commit9c573f1b661e4a7c75c086c2aa376dcd436dd48b (patch)
treeb14673eb74b3df2bf9fa4ce62d4b2c32280afc19
parent97af38a4a96cd8cf36aa9c52be1496e8e73dedca (diff)
downloadsonarqube-9c573f1b661e4a7c75c086c2aa376dcd436dd48b.tar.gz
sonarqube-9c573f1b661e4a7c75c086c2aa376dcd436dd48b.zip
SONAR-3862 Fix quality flaw
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java2
1 files changed, 1 insertions, 1 deletions
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<String> children = relations.values();
for (ResourceType type : types) {
- if (!children.contains(type)) {
+ if (!children.contains(type.getQualifier())) {
root = type;
break;
}