diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-06-04 23:55:13 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-06-04 23:55:13 +0200 |
commit | a0b901c3c04d0377f495a9da853196a3b0433eae (patch) | |
tree | 58e3e3ca4b3954e4e5eedd856cfc44d02381fa2b /src | |
parent | 198efc1b279060beba836663b802923b8d53b2ec (diff) | |
download | lombok-a0b901c3c04d0377f495a9da853196a3b0433eae.tar.gz lombok-a0b901c3c04d0377f495a9da853196a3b0433eae.tar.bz2 lombok-a0b901c3c04d0377f495a9da853196a3b0433eae.zip |
`@NonNull` now uses a slightly longer exception message.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/core/configuration/NullCheckExceptionType.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/core/configuration/NullCheckExceptionType.java b/src/core/lombok/core/configuration/NullCheckExceptionType.java index 7c30d297..c4bb71f2 100644 --- a/src/core/lombok/core/configuration/NullCheckExceptionType.java +++ b/src/core/lombok/core/configuration/NullCheckExceptionType.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 The Project Lombok Authors. + * Copyright (C) 2014-2018 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,7 +26,7 @@ package lombok.core.configuration; public enum NullCheckExceptionType { ILLEGAL_ARGUMENT_EXCEPTION { public String toExceptionMessage(String fieldName) { - return fieldName + " is null"; + return fieldName + " is marked @NonNull but is null"; } @Override public String getExceptionType() { @@ -35,7 +35,7 @@ public enum NullCheckExceptionType { }, NULL_POINTER_EXCEPTION { @Override public String toExceptionMessage(String fieldName) { - return fieldName + " is marked as @NonNull but is null"; + return fieldName + " is marked @NonNull but is null"; } public String getExceptionType() { |