From 7b32968fae100944138f0320ed831a69350bf8ac Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sun, 22 Jan 2023 00:28:50 +0100 Subject: [PATCH] Update --- .../data/generator/plugin/classgen/GenUpgraderBaseX.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenUpgraderBaseX.java b/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenUpgraderBaseX.java index 95fa261..266cd4f 100644 --- a/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenUpgraderBaseX.java +++ b/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenUpgraderBaseX.java @@ -169,7 +169,7 @@ public class GenUpgraderBaseX extends ClassGenerator { var upgraderClass = ClassName.bestGuess(upgradeDataConfiguration.upgrader); var cb = CodeBlock.builder(); var newFieldType = Objects - .requireNonNull(dataModel.getComputedTypes(version).get(fixType(upgradeDataConfiguration.type))); + .requireNonNull(dataModel.getComputedTypes(nextTypeBase.getVersion()).get(fixType(upgradeDataConfiguration.type))); var genericUpgraderClass = ParameterizedTypeName.get(ClassName.get(DataUpgrader.class), fieldType.getJTypeName(basePackageName).box(), newFieldType.getJTypeName(basePackageName).box()