aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Thiesen <mt@hubrick.com>2018-05-22 09:11:15 +0200
committerMarcus Thiesen <mt@hubrick.com>2018-05-22 09:11:15 +0200
commit72f72395c7ecfe73f8cf68a1a9e2a339dbd07866 (patch)
tree86e9d78fad79cfed32f47f853432c1853a4e8505 /src
parent4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4 (diff)
downloadlombok-72f72395c7ecfe73f8cf68a1a9e2a339dbd07866.tar.gz
lombok-72f72395c7ecfe73f8cf68a1a9e2a339dbd07866.tar.bz2
lombok-72f72395c7ecfe73f8cf68a1a9e2a339dbd07866.zip
Make the null check exception a little bit more explicit
Currently it is "NullPointerException: someFieldName" and that is not very telling as to the reasons this exception is thrown.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/core/configuration/NullCheckExceptionType.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/core/configuration/NullCheckExceptionType.java b/src/core/lombok/core/configuration/NullCheckExceptionType.java
index 18a332fd..7c30d297 100644
--- a/src/core/lombok/core/configuration/NullCheckExceptionType.java
+++ b/src/core/lombok/core/configuration/NullCheckExceptionType.java
@@ -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() {