Update data builder

This commit is contained in:
Andrea Cavalli 2022-06-22 12:11:06 +02:00
parent 05b3e9e67b
commit 54daed1dc8

View File

@ -1478,6 +1478,9 @@ public class SourcesGenerator {
String toTypeName = nextVersionFieldTypes.get(key); String toTypeName = nextVersionFieldTypes.get(key);
Family toFamily = typeFamily.get(toTypeName); Family toFamily = typeFamily.get(toTypeName);
TypeName toType = nextVersionTypeTypes.get(toTypeName); TypeName toType = nextVersionTypeTypes.get(toTypeName);
Objects.requireNonNull(toType,
"Type " + toTypeName + " is unknown in version " + nextVersion.orElse(null)
);
TypeName toTypeBoxed = toType.isPrimitive() ? toType.box() : toType; TypeName toTypeBoxed = toType.isPrimitive() ? toType.box() : toType;
{ {
currentVarNumber.addTo(key, 1); currentVarNumber.addTo(key, 1);