aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-11-07 00:06:37 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-11-07 00:26:32 +0400
commitba029cb715b4e6fba210ca48d73289b749165946 (patch)
tree8aa2c605465910164892856e245a4b1c1025f21f /plugins/sonar-squid-java-plugin
parent3a61986c5815fda72fd97aff91d69e56e7364d1d (diff)
downloadsonarqube-ba029cb715b4e6fba210ca48d73289b749165946.tar.gz
sonarqube-ba029cb715b4e6fba210ca48d73289b749165946.zip
Fix violations
Diffstat (limited to 'plugins/sonar-squid-java-plugin')
-rw-r--r--plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/NoSonarFilterLoader.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/NoSonarFilterLoader.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/NoSonarFilterLoader.java
index e73de853a8a..0fa8fd0e05b 100644
--- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/NoSonarFilterLoader.java
+++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/NoSonarFilterLoader.java
@@ -42,9 +42,7 @@ public class NoSonarFilterLoader extends Bridge {
@Override
public void onFile(SourceFile squidFile, Resource sonarFile) {
if (noSonarFilter != null) {
- // lines with NOSONAR tag
Set<Integer> ignoredLines = new HashSet<Integer>(squidFile.getNoSonarTagLines());
- // classes and methods with annotation SuppressWarnings
new SquidVisitorNotifier(squidFile, new SuppressWarningsVisitor(ignoredLines)).notifyVisitors();
noSonarFilter.addResource(sonarFile, ignoredLines);