diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-22 15:00:42 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-22 15:00:51 +0200 |
commit | 509232c130c624f1f0cc941c54252dae86dd8bdb (patch) | |
tree | 2339bb4bef48bec82ab4f1d98df23774387bd156 | |
parent | 8116d7d1593519112e427c1dde41ffad9dca82e7 (diff) | |
download | sonarqube-509232c130c624f1f0cc941c54252dae86dd8bdb.tar.gz sonarqube-509232c130c624f1f0cc941c54252dae86dd8bdb.zip |
Fix issue when getting children
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/qualitymodel/Characteristic.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/qualitymodel/Characteristic.java b/sonar-plugin-api/src/main/java/org/sonar/api/qualitymodel/Characteristic.java index 492ba4b2401..474b7509e34 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/qualitymodel/Characteristic.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/qualitymodel/Characteristic.java @@ -174,7 +174,7 @@ public final class Characteristic implements Comparable<Characteristic> { return this; } - Characteristic removeChild(Characteristic child) { + public Characteristic removeChild(Characteristic child) { children.remove(child); return this; } @@ -217,7 +217,7 @@ public final class Characteristic implements Comparable<Characteristic> { * Enabled children sorted by insertion order */ public List<Characteristic> getChildren(boolean onlyEnabled) { - if (onlyEnabled) { + if (!onlyEnabled) { return children; } List<Characteristic> result = Lists.newArrayList(); |