Skip to content

Commit fd0964a

Browse files
schaudermp911de
authored andcommitted
Make all args Sort.Order constructor public.
The other constructors are already public, and this one is actually needed by subclasses. Closes #2823
1 parent 69dbb75 commit fd0964a

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/Sort.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ public static enum NullHandling {
356356
*
357357
* @author Oliver Gierke
358358
* @author Kevin Raymond
359+
* @author Jens Schauder
359360
*/
360361
public static class Order implements Serializable {
361362

@@ -434,7 +435,7 @@ public static Order desc(String property) {
434435
* @param nullHandling must not be {@literal null}.
435436
* @since 1.7
436437
*/
437-
private Order(@Nullable Direction direction, String property, boolean ignoreCase, NullHandling nullHandling) {
438+
public Order(@Nullable Direction direction, String property, boolean ignoreCase, NullHandling nullHandling) {
438439

439440
if (!StringUtils.hasText(property)) {
440441
throw new IllegalArgumentException("Property must not be null or empty");

0 commit comments

Comments
 (0)