diff options
author | Tor Norbye <tnorbye@google.com> | 2013-01-14 17:50:44 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-01-14 17:50:44 -0800 |
commit | f2cf6759f02b56791be936ffd4ed1c42316fcf76 (patch) | |
tree | 0dfe98b74208e07dde27de231f85bce36e9e95af /eclipse | |
parent | 61222f13ac14bb926db7bdd16140d08815f290d6 (diff) | |
download | sdk-f2cf6759f02b56791be936ffd4ed1c42316fcf76.zip sdk-f2cf6759f02b56791be936ffd4ed1c42316fcf76.tar.gz sdk-f2cf6759f02b56791be936ffd4ed1c42316fcf76.tar.bz2 |
Update Eclipse Add Target API annotations for new InlinedApi check
Change-Id: I180cba4a0f71d86ae7b61643bd0b36cc8c4c6b28
Diffstat (limited to 'eclipse')
2 files changed, 4 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java index 59dbe82..d7a0758 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java @@ -332,7 +332,8 @@ class AddSuppressAnnotation implements IMarkerResolution2 { } int api = -1; - if (id.equals(ApiDetector.UNSUPPORTED.getId())) { + if (id.equals(ApiDetector.UNSUPPORTED.getId()) || + id.equals(ApiDetector.INLINED.getId())) { String message = marker.getAttribute(IMarker.MESSAGE, null); if (message != null) { Pattern pattern = Pattern.compile("\\s(\\d+)\\s"); //$NON-NLS-1$ diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java index fdb0383..0d751cb 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java @@ -177,7 +177,8 @@ class AddSuppressAttribute implements ICompletionProposal { fixes.add(new AddSuppressAttribute(editor, id, marker, element, desc, null)); int api = -1; - if (id.equals(ApiDetector.UNSUPPORTED.getId())) { + if (id.equals(ApiDetector.UNSUPPORTED.getId()) + || id.equals(ApiDetector.INLINED.getId())) { String message = marker.getAttribute(IMarker.MESSAGE, null); if (message != null) { Pattern pattern = Pattern.compile("\\s(\\d+)\\s"); //$NON-NLS-1$ |