From ee9ec179d728829bd6599e0cd8798cd839179e43 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 22 Jun 2022 18:13:11 +0200 Subject: [PATCH] Fix description --- .../java/it/cavallium/data/generator/SourcesGenerator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/it/cavallium/data/generator/SourcesGenerator.java b/src/main/java/it/cavallium/data/generator/SourcesGenerator.java index 1ecdf7f..ac34f9b 100644 --- a/src/main/java/it/cavallium/data/generator/SourcesGenerator.java +++ b/src/main/java/it/cavallium/data/generator/SourcesGenerator.java @@ -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);