From 981dc1efa0f5638b1e595c30d42e99916eeaad49 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 1 Oct 2024 23:26:01 +0200 Subject: [PATCH] Fix wrong nullable generic types --- .../it/cavallium/datagen/plugin/ComputedTypeNullableFixed.java | 3 +-- datagen/src/java9/java/module-info.java | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/datagen-plugin/src/main/java/it/cavallium/datagen/plugin/ComputedTypeNullableFixed.java b/datagen-plugin/src/main/java/it/cavallium/datagen/plugin/ComputedTypeNullableFixed.java index 85b09fa..ebb6ed1 100644 --- a/datagen-plugin/src/main/java/it/cavallium/datagen/plugin/ComputedTypeNullableFixed.java +++ b/datagen-plugin/src/main/java/it/cavallium/datagen/plugin/ComputedTypeNullableFixed.java @@ -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 diff --git a/datagen/src/java9/java/module-info.java b/datagen/src/java9/java/module-info.java index 0cacbe9..bdf6392 100644 --- a/datagen/src/java9/java/module-info.java +++ b/datagen/src/java9/java/module-info.java @@ -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; } \ No newline at end of file