Skip to content

Commit 644b65e

Browse files
committed
DATACMNS-1733 - Fix Javadoc for Range factory methods.
Range.open(…) is now correctly documented with exclusive bounds.
1 parent fbe51ef commit 644b65e

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/org/springframework/data/domain

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/domain/Range.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static <T extends Comparable<T>> Range<T> closed(T from, T to) {
7575
}
7676

7777
/**
78-
* Creates a new {@link Range} with inclusive bounds for both values.
78+
* Creates a new {@link Range} with exclusive bounds for both values.
7979
*
8080
* @param <T>
8181
* @param from must not be {@literal null}.
@@ -171,6 +171,7 @@ public static <T extends Comparable<T>> Range<T> of(Bound<T> lowerBound, Bound<T
171171
* @param <T>
172172
* @param value must not be {@literal null}.
173173
* @return
174+
* @see Range#closed(Comparable, Comparable)
174175
*/
175176
public static <T extends Comparable<T>> Range<T> just(T value) {
176177
return Range.closed(value, value);

0 commit comments

Comments
 (0)