Skip to content

Commit 0d34687

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

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
@@ -72,7 +72,7 @@ public static <T extends Comparable<T>> Range<T> closed(T from, T to) {
7272
}
7373

7474
/**
75-
* Creates a new {@link Range} with inclusive bounds for both values.
75+
* Creates a new {@link Range} with exclusive bounds for both values.
7676
*
7777
* @param <T>
7878
* @param from must not be {@literal null}.
@@ -168,6 +168,7 @@ public static <T extends Comparable<T>> Range<T> of(Bound<T> lowerBound, Bound<T
168168
* @param <T>
169169
* @param value must not be {@literal null}.
170170
* @return
171+
* @see Range#closed(Comparable, Comparable)
171172
*/
172173
public static <T extends Comparable<T>> Range<T> just(T value) {
173174
return Range.closed(value, value);

0 commit comments

Comments
 (0)