Skip to content

Conversation

@aclement
Copy link
Contributor

@aclement aclement commented Nov 7, 2013

The SpEL operators == and != were using the java
== comparison operator as part of their equality checking.
It is more flexible to use the equals() method on Object.
Under this commit the change to .equals() has been made
and the equality checking code has been pushed into
a common method in the Operator superclass. This commit
also makes some tweaks to the other operator classes -
the Float case was missing from OpGT.

Issue: SPR-9194

The SpEL operators == and != were using the java
== comparison operator as part of their equality checking.
It is more flexible to use the equals() method on Object.
Under this commit the change to .equals() has been made
and the equality checking code has been pushed into
a common method in the Operator superclass. This commit
also makes some tweaks to the other operator classes -
the Float case was missing from OpGT.

Issue: SPR-9194
philwebb pushed a commit that referenced this pull request Nov 21, 2013
* fix-SPR-9194:
  Change SpEL equality operators to use .equals
@philwebb philwebb closed this Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants