mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 20:17:25 +00:00
[Fix #2380] Make custom null annotation resolved in addNullAnnotations
This commit is contained in:
1 parent
7993aa20cd
commit
b460d2aa68
1 file changed
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user