diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-05-30 22:07:23 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-05-30 22:31:26 +0400 |
commit | 49d5f33b357d2a49cee0f2a511cd354a21ec6398 (patch) | |
tree | 0fef92608ed1de1f87987e945e7ef3ba8c802997 /plugins/sonar-core-plugin/src | |
parent | 6c4d1e705ab4cd7f20512762cecd542a3220f63b (diff) | |
download | sonarqube-49d5f33b357d2a49cee0f2a511cd354a21ec6398.tar.gz sonarqube-49d5f33b357d2a49cee0f2a511cd354a21ec6398.zip |
Fix violations
Diffstat (limited to 'plugins/sonar-core-plugin/src')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/UnitTestDecorator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/UnitTestDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/UnitTestDecorator.java index 0658a9733ab..e0758ca0e36 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/UnitTestDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/UnitTestDecorator.java @@ -70,7 +70,7 @@ public class UnitTestDecorator implements Decorator { private Double sumChildren(DecoratorContext jobContext, Metric metric) { Collection<Measure> childrenMeasures = jobContext.getChildrenMeasures(metric); - if (childrenMeasures != null && childrenMeasures.size() > 0) { + if (childrenMeasures != null && !childrenMeasures.isEmpty()) { Double sum = 0.0; boolean hasChildrenMeasures = false; for (Measure measure : childrenMeasures) { |