aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-01-26 17:16:09 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-26 17:16:09 -0800
commitcf6d0102593de79ef681c06a84e79f63001d7452 (patch)
treed68bdcc56cd99b1f6015be79bb47de3b74d9d830
parentee9caf2e0bb911dd17621dcc4f72476550b2b151 (diff)
parent7d6611991da6e11745d6f87986471ad168fd37f7 (diff)
downloadsdk-cf6d0102593de79ef681c06a84e79f63001d7452.zip
sdk-cf6d0102593de79ef681c06a84e79f63001d7452.tar.gz
sdk-cf6d0102593de79ef681c06a84e79f63001d7452.tar.bz2
Merge "Suppress one more java error from Lombok"
-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;
}