diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-11-03 12:32:03 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-11-03 13:10:43 +0400 |
commit | cab01ac39897c39b0b669c04823da607c376c93e (patch) | |
tree | 0207f03193f8f3dc8fa9f0ef9cc44d227ebee3e2 /plugins/sonar-squid-java-plugin | |
parent | d234f0fbdb75112af3f39a9b4fb85ac9fe0552ed (diff) | |
download | sonarqube-cab01ac39897c39b0b669c04823da607c376c93e.tar.gz sonarqube-cab01ac39897c39b0b669c04823da607c376c93e.zip |
Fix violations
Diffstat (limited to 'plugins/sonar-squid-java-plugin')
-rw-r--r-- | plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/visitor/ComplexityVisitor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/visitor/ComplexityVisitor.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/visitor/ComplexityVisitor.java index 07b9e0b9c18..60aef739ef9 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/visitor/ComplexityVisitor.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/visitor/ComplexityVisitor.java @@ -32,7 +32,7 @@ public class ComplexityVisitor extends JavaAstVisitor { @Override public List<Integer> getWantedTokens() { - return wantedTokens; + return WANTED_TOKENS; } @Override @@ -41,6 +41,6 @@ public class ComplexityVisitor extends JavaAstVisitor { res.setMeasure(Metric.COMPLEXITY, res.getInt(Metric.COMPLEXITY) + res.getInt(Metric.BRANCHES) + 1); } - private static final List<Integer> wantedTokens = Arrays.asList(TokenTypes.CTOR_DEF, TokenTypes.METHOD_DEF, TokenTypes.INSTANCE_INIT, + private static final List<Integer> WANTED_TOKENS = Arrays.asList(TokenTypes.CTOR_DEF, TokenTypes.METHOD_DEF, TokenTypes.INSTANCE_INIT, TokenTypes.STATIC_INIT); } |