Skip to content

Commit 65d7955

Browse files
committed
Correct Validator notNull message
1 parent cc49178 commit 65d7955

File tree

1 file changed

+1
-1
lines changed
  • playtime-core/src/main/java/com/github/imdmk/playtime/shared/validate

1 file changed

+1
-1
lines changed

playtime-core/src/main/java/com/github/imdmk/playtime/shared/validate/Validator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private Validator() {
3232
*/
3333
public static <T> T notNull(@Nullable T obj, @NotNull String context) {
3434
if (obj == null) {
35-
throw new NullPointerException(context + "");
35+
throw new NullPointerException(context + " cannot be null");
3636
}
3737
return obj;
3838
}

0 commit comments

Comments
 (0)