From 0f355b19294f39db6821417066b7ea72bda88062 Mon Sep 17 00:00:00 2001 From: Thomas Corbat Date: Thu, 17 Jul 2014 12:55:12 +0200 Subject: [PATCH] Fixed tautologic comparison in ASTFileLocation.equals() Signed-off-by: Thomas Corbat --- .../cdt/internal/core/parser/scanner/ASTPreprocessorNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ASTPreprocessorNode.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ASTPreprocessorNode.java index 0c173dee241..f3bd5e0fb69 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ASTPreprocessorNode.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ASTPreprocessorNode.java @@ -798,7 +798,7 @@ class ASTFileLocation implements IASTFileLocation { return false; if (fLength != other.fLength) return false; - return Objects.equals(fLocationCtx, fLocationCtx); + return Objects.equals(fLocationCtx, other.fLocationCtx); } }