aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunoyoon <juno.yoon@navercorp.com>2020-02-28 03:54:30 +0900
committerjunoyoon <juno.yoon@navercorp.com>2020-02-28 03:55:22 +0900
commitb460d2aa685912fb1283b224506227d94edab7d2 (patch)
tree889b72aa737d22e10de880ce4f2b1e5bae6f13df
parent7993aa20cd20cdc030f90ee9f33c1b74c023d7ca (diff)
downloadlombok-b460d2aa685912fb1283b224506227d94edab7d2.tar.gz
lombok-b460d2aa685912fb1283b224506227d94edab7d2.tar.bz2
lombok-b460d2aa685912fb1283b224506227d94edab7d2.zip
[Fix #2380] Make custom null annotation resolved in addNullAnnotations
-rw-r--r--src/core/lombok/core/configuration/NullAnnotationLibrary.java6
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);
}