Merge pull request #1698 from hubrick/feature/explicit-npe-message

Make the null check exception a little bit more explicit
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2018-06-04 23:40:21 +02:00
commit 198efc1b27
1 file changed
+1 -1
@@ -35,7 +35,7 @@ public enum NullCheckExceptionType {
},
NULL_POINTER_EXCEPTION {
@Override public String toExceptionMessage(String fieldName) {
return fieldName;
return fieldName + " is marked as @NonNull but is null";
}
public String getExceptionType() {