HHH-13884 Order.reverse() contract#3272
Conversation
There was a problem hiding this comment.
please note: nullPrecenence duplicates precedence field.
nullPrecendence was assigned only in constructor and never used, all other access is done to precedence field.
I looks like a defect. I fixed it, because otherwise I could not write a test to validate all assignments in this class.
There was a problem hiding this comment.
I prefer the name nullPrecedence - its more consistent and self-documenting
bbcb6f6 to
1a807a0
Compare
sebersole
left a comment
There was a problem hiding this comment.
Minor request to change field name. Other than that - +1
There was a problem hiding this comment.
I prefer the name nullPrecedence - its more consistent and self-documenting
|
@sebersole requested change addressed. Still any objections to merge it? |
|
@sebersole @beikov please make a decision on it. It was created half a year ago. If you don't like it, lets close. |
|
Could you please rebase it, I can't merge it right now. |
7fa3416 to
22def92
Compare
|
@beikov rebased on top of |
https://hibernate.atlassian.net/browse/HHH-13884
backported in #3271
javax.persistence.criteria.Order.reverse() method javadoc explicitly declares that
reverse()should return new instance.