diff options
author | Tor Norbye <tnorbye@google.com> | 2012-03-23 14:50:01 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-23 14:50:01 -0700 |
commit | 04aebba9b3a718aedddc1ff5726201e0952cbe81 (patch) | |
tree | a45572008fbc45476a18f221741146c58297fdb1 /eclipse | |
parent | 738ae16ce2ebc112cd37da8c04cd59dc6c09b564 (diff) | |
parent | 1393591b90988558e537533138bab25a65025380 (diff) | |
download | sdk-04aebba9b3a718aedddc1ff5726201e0952cbe81.zip sdk-04aebba9b3a718aedddc1ff5726201e0952cbe81.tar.gz sdk-04aebba9b3a718aedddc1ff5726201e0952cbe81.tar.bz2 |
Merge "Fix bug related to suppressing attributes in elements"
Diffstat (limited to 'eclipse')
-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); |