File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/org/springframework/data/domain Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2424 * defining the {@link #max() maximum} number of results within a repository finder method or if applicable a template
2525 * operation.
2626 * <p>
27- * A {@link Limit#isUnlimited()} is used to indicate that there is no {@link Limit} defined, which should be favoured
27+ * A {@link Limit#isUnlimited()} is used to indicate that there is no {@link Limit} defined, which should be favored
2828 * over using {@literal null} or {@link java.util.Optional#empty()} to indicate the absence of an actual {@link Limit}.
2929 * </p>
3030 * {@link Limit} itself does not make assumptions about the actual {@link #max()} value sign. This means that a negative
3131 * value may be valid within a defined context.
3232 *
3333 * @author Christoph Strobl
34+ * @author Oliver Drotbohm
3435 * @since 3.2
3536 */
36- public sealed interface Limit permits Limited ,Unlimited {
37+ public sealed interface Limit permits Limited , Unlimited {
3738
3839 /**
3940 * @return a {@link Limit} instance that does not define {@link #max()} and answers {@link #isUnlimited()} with
@@ -89,7 +90,7 @@ public boolean isLimited() {
8990 }
9091
9192 @ Override
92- public boolean equals (Object obj ) {
93+ public boolean equals (@ Nullable Object obj ) {
9394
9495 if (obj == null ) {
9596 return false ;
@@ -109,7 +110,7 @@ public boolean equals(Object obj) {
109110
110111 @ Override
111112 public int hashCode () {
112- return max ^ ( max >>> 32 ) ;
113+ return max ^ max >>> 32 ;
113114 }
114115 }
115116
@@ -129,6 +130,5 @@ public int max() {
129130 public boolean isLimited () {
130131 return false ;
131132 }
132-
133133 }
134134}
You can’t perform that action at this time.
0 commit comments