From c4a0adb1093ec5112c60a186c7659ba602910c1c Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 31 Jan 2009 22:06:26 +0000 Subject: [PATCH] 195090: ajc$ local vars that aren't used getting reported when using -warn:+unusedArgument --- .../compiler/problem/AjProblemReporter.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java index 9d1ea17d0..e7e6310a4 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java @@ -472,6 +472,10 @@ public class AjProblemReporter extends ProblemReporter { return; } } + if (new String(localDecl.name).startsWith("ajc$")) { + // Do not report problems for infrastructure variables beyond the users control - pr195090 + return; + } super.unusedArgument(localDecl); } @@ -618,15 +622,10 @@ public class AjProblemReporter extends ProblemReporter { super.duplicateMethodInType(type, methodDecl); } - // pr246393 - if we are going to complain about privileged, we clearly don't know what is going on, so don't - // confuse the user - public void parseErrorInsertAfterToken( - int start, - int end, - int currentKind, - char[] errorTokenSource, - String errorTokenName, - String expectedToken){ + // pr246393 - if we are going to complain about privileged, we clearly don't know what is going on, so don't + // confuse the user + public void parseErrorInsertAfterToken(int start, int end, int currentKind, char[] errorTokenSource, String errorTokenName, + String expectedToken) { if (expectedToken.equals("privileged")) { super.parseErrorNoSuggestion(start, end, currentKind, errorTokenSource, errorTokenName); } else { -- 2.39.5