Browse Source

Add missing verb to the error message.

Closes #2524
pull/2538/head
yelis913 4 years ago committed by Mark Paluch
parent
commit
05260bf5d7
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 2
      src/main/java/org/springframework/data/domain/Sort.java

2
src/main/java/org/springframework/data/domain/Sort.java

@ -436,7 +436,7 @@ public class Sort implements Streamable<org.springframework.data.domain.Sort.Ord @@ -436,7 +436,7 @@ public class Sort implements Streamable<org.springframework.data.domain.Sort.Ord
private Order(@Nullable Direction direction, String property, boolean ignoreCase, NullHandling nullHandling) {
if (!StringUtils.hasText(property)) {
throw new IllegalArgumentException("Property must not null or empty!");
throw new IllegalArgumentException("Property must not be null or empty!");
}
this.direction = direction == null ? DEFAULT_DIRECTION : direction;

Loading…
Cancel
Save