diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2020-02-27 22:00:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 22:00:38 +0100 |
commit | 013d97251f1e141a9546b4871de3f588acc0115b (patch) | |
tree | 93bc69f9b82157fe65bf9a48d57c0653e2163ff0 /src/core | |
parent | f232e9f8b89395d6a1c596faa4f8abec4fa8f2f9 (diff) | |
parent | b460d2aa685912fb1283b224506227d94edab7d2 (diff) | |
download | lombok-013d97251f1e141a9546b4871de3f588acc0115b.tar.gz lombok-013d97251f1e141a9546b4871de3f588acc0115b.tar.bz2 lombok-013d97251f1e141a9546b4871de3f588acc0115b.zip |
Merge pull request #2381 from junoyoon/customNullAnnotatationClassNameBugFix
Make custom null annotation resolved in addNullAnnotations
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/core/configuration/NullAnnotationLibrary.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/core/configuration/NullAnnotationLibrary.java b/src/core/lombok/core/configuration/NullAnnotationLibrary.java index 68760e6f..e8a07721 100644 --- a/src/core/lombok/core/configuration/NullAnnotationLibrary.java +++ b/src/core/lombok/core/configuration/NullAnnotationLibrary.java @@ -126,11 +126,11 @@ public final class NullAnnotationLibrary implements ConfigurationValueType { int start = typeUse ? 16 : 7; int split = ci.indexOf(':', start); if (split == -1) { - String nonNullAnnotation = ci.substring(start); + String nonNullAnnotation = in.substring(start); return custom(verifyTypeName(nonNullAnnotation), null, typeUse); } - String nonNullAnnotation = ci.substring(start, split); - String nullableAnnotation = ci.substring(split + 1); + String nonNullAnnotation = in.substring(start, split); + String nullableAnnotation = in.substring(split + 1); return custom(verifyTypeName(nonNullAnnotation), verifyTypeName(nullableAnnotation), typeUse); } |