Fix description

This commit is contained in:
Andrea Cavalli 2022-06-22 18:13:11 +02:00
parent 673b885366
commit ee9ec179d7
1 changed files with 2 additions and 3 deletions

View File

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