Lines 862-868
Link Here
|
862 |
// check whether comparing identical expressions |
862 |
// check whether comparing identical expressions |
863 |
Binding leftDirect = Expression.getDirectBinding(this.left); |
863 |
Binding leftDirect = Expression.getDirectBinding(this.left); |
864 |
if (leftDirect != null && leftDirect == Expression.getDirectBinding(this.right)) { |
864 |
if (leftDirect != null && leftDirect == Expression.getDirectBinding(this.right)) { |
865 |
if (!(this.right instanceof Assignment)) { |
865 |
int leftTypeID = leftType.id; |
|
|
866 |
if (leftTypeID != TypeIds.T_JavaLangFloat && leftTypeID != TypeIds.T_JavaLangDouble && // https://bugs.eclipse.org/bugs/show_bug.cgi?id=301405 |
867 |
(!(this.right instanceof Assignment))) { |
866 |
scope.problemReporter().comparingIdenticalExpressions(this); |
868 |
scope.problemReporter().comparingIdenticalExpressions(this); |
867 |
} |
869 |
} |
868 |
} |
870 |
} |