diff options
author | Xavier Ducrohet <xav@google.com> | 2012-02-28 12:10:55 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-28 12:10:55 -0800 |
commit | 5493c1a5563489a7e7b94ed3b15ba22678c45c58 (patch) | |
tree | 7470456a72cdbf9f7b1c5da951504f6eaa0fe35f /eclipse | |
parent | 1ac21668cdad72f9734d142fb4bb0c366b17cab1 (diff) | |
parent | fd9fe37e806b8f14b2944d29f307cd050ecb419c (diff) | |
download | sdk-5493c1a5563489a7e7b94ed3b15ba22678c45c58.zip sdk-5493c1a5563489a7e7b94ed3b15ba22678c45c58.tar.gz sdk-5493c1a5563489a7e7b94ed3b15ba22678c45c58.tar.bz2 |
Merge "Fix configuration information for library projects"
Diffstat (limited to 'eclipse')
2 files changed, 4 insertions, 8 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java index 9db17d8..9424bf0 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/EclipseLintClient.java @@ -203,12 +203,8 @@ public class EclipseLintClient extends LintClient implements IDomParser { } @Override - public void report(Context context, Issue issue, Location location, String message, - Object data) { - assert context.isEnabled(issue); - assert context.getConfiguration().getSeverity(issue) != Severity.IGNORE; - Severity s = context.getConfiguration().getSeverity(issue); - + public void report(Context context, Issue issue, Severity s, Location location, + String message, Object data) { int severity = getMarkerSeverity(s); IMarker marker = null; if (location != null) { diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/ProjectLintConfigurationTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/ProjectLintConfigurationTest.java index 96014de..202d768 100644 --- a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/ProjectLintConfigurationTest.java +++ b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/ProjectLintConfigurationTest.java @@ -208,8 +208,8 @@ public class ProjectLintConfigurationTest extends AdtProjectTest { private static class TestClient extends LintClient { @Override - public void report(Context context, Issue issue, Location location, String message, - Object data) { + public void report(Context context, Issue issue, Severity severity, Location location, + String message, Object data) { } @Override |