aboutsummaryrefslogtreecommitdiffstats
path: root/lint
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-01-26 17:14:49 -0800
committerTor Norbye <tnorbye@google.com>2012-01-26 17:14:49 -0800
commit7d6611991da6e11745d6f87986471ad168fd37f7 (patch)
treea72f71a8fa1c0bd68a617920ce4e7091d43b9bfe /lint
parent0b9096131c0260560eefce376a77f031a0818766 (diff)
downloadsdk-7d6611991da6e11745d6f87986471ad168fd37f7.zip
sdk-7d6611991da6e11745d6f87986471ad168fd37f7.tar.gz
sdk-7d6611991da6e11745d6f87986471ad168fd37f7.tar.bz2
Suppress one more java error from Lombok
Change-Id: Ic4131738e505861c8308f386c2673d9ee304f158
Diffstat (limited to 'lint')
-rw-r--r--lint/cli/src/com/android/tools/lint/LombokParser.java7
1 files changed, 6 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 0282781..9e96d46 100644
--- a/lint/cli/src/com/android/tools/lint/LombokParser.java
+++ b/lint/cli/src/com/android/tools/lint/LombokParser.java
@@ -17,7 +17,6 @@
package com.android.tools.lint;
import com.android.tools.lint.client.api.IJavaParser;
-import com.android.tools.lint.client.api.IssueRegistry;
import com.android.tools.lint.detector.api.JavaContext;
import com.android.tools.lint.detector.api.Location;
import com.android.tools.lint.detector.api.Location.Handle;
@@ -48,6 +47,11 @@ public class LombokParser implements IJavaParser {
// Don't analyze files containing errors
List<ParseProblem> problems = source.getProblems();
if (problems != null && problems.size() > 0) {
+ /* 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
+ * is bad. To make matters worse, the error messages aren't clear:
+ * http://code.google.com/p/projectlombok/issues/detail?id=313
for (ParseProblem problem : problems) {
Position position = problem.getPosition();
Location location = Location.create(context.file,
@@ -61,6 +65,7 @@ public class LombokParser implements IJavaParser {
null);
}
+ */
return null;
}