aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java10
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);