aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-08-16 14:00:09 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-08-16 14:00:09 +0200
commit6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21 (patch)
treeb7a670c274dff1a01aeafad4f85de37266ae248a /sonar-squid/src
parent424cffa7da8a34ab30cf4426cb3ee897ba01c743 (diff)
downloadsonarqube-6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21.tar.gz
sonarqube-6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21.zip
Fix some quality flaws
Diffstat (limited to 'sonar-squid/src')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
index 6fe42851fa3..6aa9b7e14a7 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/SourceCode.java
@@ -276,7 +276,7 @@ public abstract class SourceCode implements Measurable, Comparable<SourceCode> {
}
public boolean hasChildren() {
- return children != null && children.size() != 0;
+ return children != null && !children.isEmpty();
}
public boolean hasAmongParents(SourceCode expectedParent) {