diff --git a/commons-serialize-generator/src/main/java/io/gitlab/jfronny/commons/serialize/generator/SerializeGeneratorProcessor.java b/commons-serialize-generator/src/main/java/io/gitlab/jfronny/commons/serialize/generator/SerializeGeneratorProcessor.java index 94e6903..252a036 100644 --- a/commons-serialize-generator/src/main/java/io/gitlab/jfronny/commons/serialize/generator/SerializeGeneratorProcessor.java +++ b/commons-serialize-generator/src/main/java/io/gitlab/jfronny/commons/serialize/generator/SerializeGeneratorProcessor.java @@ -115,7 +115,7 @@ public class SerializeGeneratorProcessor extends AbstractProcessor2 { case "adapter" -> { if (bld.adapter != null) throw new IllegalArgumentException("Duplicate annotation parameter: adapter"); if (value.getValue() instanceof TypeMirror tm) bld.adapter = tm; - else throw new IllegalArgumentException("Unexpected value type: " + value.getValue().getClass() + " (with value" + value.getValue() + ")"); + else throw new IllegalArgumentException("Unexpected value type: " + value.getValue().getClass() + " (with value " + value.getValue() + ") on " + element); } case "nullSafe" -> { if (bld.nullSafe != null) throw new IllegalArgumentException("Duplicate annotation parameter: nullSafe");