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) { private TypeName getJTypeNameGenericOfVersion(ComputedVersion version, String basePackageName) {
return ParameterizedTypeName.get(ClassName.get(TypedNullable.class), return ParameterizedTypeName.get(ClassName.get(TypedNullable.class), this.child().getJTypeName(basePackageName));
ClassName.get(version.getDataPackage(basePackageName), baseType));
} }
@Override @Override

View File

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