diff options
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/src/com/android/tools/lint/LombokParser.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lint/cli/src/com/android/tools/lint/LombokParser.java b/lint/cli/src/com/android/tools/lint/LombokParser.java index 2c263c6..bc841e2 100644 --- a/lint/cli/src/com/android/tools/lint/LombokParser.java +++ b/lint/cli/src/com/android/tools/lint/LombokParser.java @@ -48,6 +48,8 @@ public class LombokParser implements IJavaParser { // Don't analyze files containing errors List<ParseProblem> problems = source.getProblems(); if (problems != null && problems.size() > 0) { + context.getDriver().setHasParserErrors(true); + /* Silently ignore the errors. There are still some bugs in Lombok/Parboiled * (triggered if you run lint on the AOSP framework directory for example), * and having these show up as fatal errors when it's really a tool bug @@ -61,7 +63,7 @@ public class LombokParser implements IJavaParser { // See http://code.google.com/p/projectlombok/issues/detail?id=313 String message = problem.getMessage(); context.report( - IssueRegistry.PARSER_ERROR, location, + com.android.tools.lint.client.api.IssueRegistry.PARSER_ERROR, location, message, null); |