diff options
author | Tor Norbye <tnorbye@google.com> | 2012-03-22 18:56:21 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-03-22 18:57:07 -0700 |
commit | 1393591b90988558e537533138bab25a65025380 (patch) | |
tree | dbf1a2b38d4b315f15b903ebf68e1ffca5a63325 /eclipse/plugins | |
parent | 7a795b5291224e2b85885f4d1f4d7ac097e96d3c (diff) | |
download | sdk-1393591b90988558e537533138bab25a65025380.zip sdk-1393591b90988558e537533138bab25a65025380.tar.gz sdk-1393591b90988558e537533138bab25a65025380.tar.bz2 |
Fix bug related to suppressing attributes in elements
What was I thinking?
Change-Id: I7f45703733ab593a477b7671028fec861acbc888
Diffstat (limited to 'eclipse/plugins')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java | 10 |
1 files changed, 4 insertions, 6 deletions
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 1137901..3297756 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 @@ -191,12 +191,10 @@ class AddSuppressAttribute implements ICompletionProposal { node = node.getParentNode(); } if (node == null) { - return null; - } - - node = document.getDocumentElement(); - if (node == null) { - return null; + node = document.getDocumentElement(); + if (node == null) { + return null; + } } String desc = String.format("Add ignore '%1$s\' to element", id); |