diff options
author | Carsten Hammer | 2020-09-05 08:31:43 +0000 |
---|---|---|
committer | Fabrice Tiercelin | 2020-09-16 13:14:08 +0000 |
commit | 7bb51ff1e4f479ed01f088b0e2372f8d47e47d80 (patch) | |
tree | 8c4ff5c1c2504b72df61bb27df425c6fa5117b03 | |
parent | b55df4701b29ea21d4822488ddbd1793dee65e2d (diff) | |
download | eclipse.jdt.core-I20200916-1800.tar.gz eclipse.jdt.core-I20200916-1800.tar.xz eclipse.jdt.core-I20200916-1800.zip |
Bug 566510 - index check useless because of while conditionI20200916-1800
Change-Id: I7a0b27fd985b0ba88cbce3ad9ffe0381718c659c
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
-rw-r--r-- | org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java index ca4d6b58f7..ecbcfcb88f 100644 --- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java +++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java @@ -1257,7 +1257,7 @@ private Statement buildMoreCompletionEnclosingContext(Statement statement) { } while (index >= 0) { // Try to find an enclosing if statement even if one is not found immediately preceding the completion node. - if (index != -1 && this.elementInfoStack[index] == IF && this.elementObjectInfoStack[index] != null) { + if (this.elementInfoStack[index] == IF && this.elementObjectInfoStack[index] != null) { Expression condition = (Expression)this.elementObjectInfoStack[index]; // If currentElement is a RecoveredLocalVariable then it can be contained in the if statement |