From 3d5765bd4b52b9a5cf1f4f244823c0b307b0dade Mon Sep 17 00:00:00 2001 From: Godin Date: Mon, 29 Nov 2010 15:58:35 +0000 Subject: Instead of 'force' use more meaningful name 'bypassExclusionMechanism' in CheckMessage --- .../src/main/java/org/sonar/java/squid/check/NoSonarCheck.java | 2 +- .../src/main/java/org/sonar/plugins/squid/bridges/ChecksBridge.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/sonar-squid-java-plugin') diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/NoSonarCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/NoSonarCheck.java index e17c348d012..7dcb0929587 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/NoSonarCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/NoSonarCheck.java @@ -35,7 +35,7 @@ public class NoSonarCheck extends SquidCheck { public void visitFile(SourceFile sourceFile) { for (Integer line : sourceFile.getNoSonarTagLines()) { CheckMessage message = new CheckMessage(this, "Is //NOSONAR used to exclude false-positive or to hide real quality flaw ?"); - message.setForced(true); + message.setBypassExclusionMechanism(true); message.setLine(line); sourceFile.log(message); } diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/ChecksBridge.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/ChecksBridge.java index 9caf6f482c2..16fbeb8fde5 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/ChecksBridge.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/bridges/ChecksBridge.java @@ -44,7 +44,7 @@ public class ChecksBridge extends Bridge { violation.setLineId(checkMessage.getLine()); violation.setMessage(checkMessage.getText(Locale.ENGLISH)); violation.setCost(checkMessage.getCost()); - context.saveViolation(violation, checkMessage.isForced()); + context.saveViolation(violation, checkMessage.isBypassExclusionMechanism()); } } } -- cgit v1.2.3