aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-10-22 15:00:42 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-10-22 15:00:51 +0200
commit509232c130c624f1f0cc941c54252dae86dd8bdb (patch)
tree2339bb4bef48bec82ab4f1d98df23774387bd156
parent8116d7d1593519112e427c1dde41ffad9dca82e7 (diff)
downloadsonarqube-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.java4
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();