diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-16 14:00:09 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-16 14:00:09 +0200 |
commit | 6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21 (patch) | |
tree | b7a670c274dff1a01aeafad4f85de37266ae248a /sonar-squid/src | |
parent | 424cffa7da8a34ab30cf4426cb3ee897ba01c743 (diff) | |
download | sonarqube-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.java | 2 |
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) { |