Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2015-03-07 02:06:12 -0500
committerGerrit Code Review @ Eclipse.org2015-03-08 14:36:13 -0400
commit5d2f7bcb56bc4d61a97e2c248d8c573540cc80a5 (patch)
tree2d80d8e18a76011a55c6b8031108ef739879adb6 /codan/org.eclipse.cdt.codan.examples
parentad308251da1de7cbb3c48a52ba0d11d4d06544d2 (diff)
downloadorg.eclipse.cdt-5d2f7bcb56bc4d61a97e2c248d8c573540cc80a5.tar.gz
org.eclipse.cdt-5d2f7bcb56bc4d61a97e2c248d8c573540cc80a5.tar.xz
org.eclipse.cdt-5d2f7bcb56bc4d61a97e2c248d8c573540cc80a5.zip
Bug 352407 - Correctly compare resource path to pattern in codan
exclusion filter Change-Id: Ic7f9740fa129bb5e05a6156f077af8a8c0d36e7b Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Diffstat (limited to 'codan/org.eclipse.cdt.codan.examples')
-rw-r--r--codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/GrepChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/GrepChecker.java b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/GrepChecker.java
index 9a0ec7f0ab..c14778b9bc 100644
--- a/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/GrepChecker.java
+++ b/codan/org.eclipse.cdt.codan.examples/src/org/eclipse/cdt/codan/examples/checkers/GrepChecker.java
@@ -51,7 +51,7 @@ public class GrepChecker extends AbstractCheckerWithProblemPreferences {
for (Iterator<IProblem> iterator = refProblems.iterator(); iterator.hasNext();) {
IProblem checkerProblem = iterator.next();
IProblem problem = getProblemById(checkerProblem.getId(), file);
- if (shouldProduceProblem(problem, file.getLocation())) {
+ if (shouldProduceProblem(problem, file.getFullPath())) {
// do something
Object[] values = (Object[]) getPreference(problem, PARAM_STRING_LIST);
if (values.length == 0)

Back to the top