From 72f72395c7ecfe73f8cf68a1a9e2a339dbd07866 Mon Sep 17 00:00:00 2001 From: Marcus Thiesen Date: Tue, 22 May 2018 09:11:15 +0200 Subject: 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. --- src/core/lombok/core/configuration/NullCheckExceptionType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok') 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() { -- cgit