aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-06-04 23:40:21 +0200
committerGitHub <noreply@github.com>2018-06-04 23:40:21 +0200
commit198efc1b279060beba836663b802923b8d53b2ec (patch)
treef2052cdd3416029a566a03a6ca5ace5bdd677291 /src/core/lombok
parenta74db7c10c61c7a18e8fed774cac1e0cde534009 (diff)
parent72f72395c7ecfe73f8cf68a1a9e2a339dbd07866 (diff)
downloadlombok-198efc1b279060beba836663b802923b8d53b2ec.tar.gz
lombok-198efc1b279060beba836663b802923b8d53b2ec.tar.bz2
lombok-198efc1b279060beba836663b802923b8d53b2ec.zip
Merge pull request #1698 from hubrick/feature/explicit-npe-message
Make the null check exception a little bit more explicit
Diffstat (limited to 'src/core/lombok')
-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() {