Fix wrong nullable generic types

This commit is contained in:
Andrea Cavalli 2024-10-01 23:26:01 +02:00
parent d9978d572f
commit 981dc1efa0
2 changed files with 3 additions and 2 deletions

View File

@ -81,8 +81,7 @@ public final class ComputedTypeNullableFixed implements ComputedTypeNullable {
}
private TypeName getJTypeNameGenericOfVersion(ComputedVersion version, String basePackageName) {
return ParameterizedTypeName.get(ClassName.get(TypedNullable.class),
ClassName.get(version.getDataPackage(basePackageName), baseType));
return ParameterizedTypeName.get(ClassName.get(TypedNullable.class), this.child().getJTypeName(basePackageName));
}
@Override

View File

@ -4,6 +4,8 @@ module it.cavallium.datagen {
exports it.cavallium.stream;
exports it.cavallium.buffer;
opens it.cavallium.buffer;
requires org.jetbrains.annotations;
requires it.unimi.dsi.fastutil;
}