Skip to content

Change SpEL equality operators to use .equals - #406

Closed
aclement wants to merge 1 commit into
spring-projects:masterfrom
aclement:fix-SPR-9194
Closed

aclement wants to merge 1 commit into
spring-projects:masterfrom
aclement:fix-SPR-9194

Conversation

@aclement

@aclement aclement commented Nov 7, 2013

Copy link
Copy Markdown
Contributor

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