Bugfix
This commit is contained in:
parent
1a0428fb99
commit
fed9d27a37
@ -959,7 +959,7 @@ public class SourcesGenerator {
|
|||||||
var orMethodGeneric = MethodSpec.methodBuilder("or");
|
var orMethodGeneric = MethodSpec.methodBuilder("or");
|
||||||
orMethodGeneric.addParameter(ParameterSpec
|
orMethodGeneric.addParameter(ParameterSpec
|
||||||
.builder(ParameterizedTypeName.get(
|
.builder(ParameterizedTypeName.get(
|
||||||
ClassName.get("it.cavallium.data.generator", "NativeTypedNullable"),
|
ClassName.get("it.cavallium.data.generator", "NativeNullable"),
|
||||||
WildcardTypeName.subtypeOf(typeType)), "fallback")
|
WildcardTypeName.subtypeOf(typeType)), "fallback")
|
||||||
.addAnnotation(NotNull.class)
|
.addAnnotation(NotNull.class)
|
||||||
.build());
|
.build());
|
||||||
@ -985,7 +985,6 @@ public class SourcesGenerator {
|
|||||||
.build());
|
.build());
|
||||||
orMethodSpecific.addModifiers(Modifier.PUBLIC);
|
orMethodSpecific.addModifiers(Modifier.PUBLIC);
|
||||||
orMethodSpecific.addModifiers(Modifier.FINAL);
|
orMethodSpecific.addModifiers(Modifier.FINAL);
|
||||||
orMethodSpecific.addAnnotation(Override.class);
|
|
||||||
orMethodSpecific.addAnnotation(NotNull.class);
|
orMethodSpecific.addAnnotation(NotNull.class);
|
||||||
orMethodSpecific.returns(nullableClassType);
|
orMethodSpecific.returns(nullableClassType);
|
||||||
orMethodSpecific.beginControlFlow("if (value == null)");
|
orMethodSpecific.beginControlFlow("if (value == null)");
|
||||||
|
Loading…
Reference in New Issue
Block a user