fix(serialize-generator): Attempt to provide additional insight into the discovered issue
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
8db740a9eb
commit
ca21e3e826
|
@ -115,7 +115,7 @@ public class SerializeGeneratorProcessor extends AbstractProcessor2 {
|
||||||
case "adapter" -> {
|
case "adapter" -> {
|
||||||
if (bld.adapter != null) throw new IllegalArgumentException("Duplicate annotation parameter: adapter");
|
if (bld.adapter != null) throw new IllegalArgumentException("Duplicate annotation parameter: adapter");
|
||||||
if (value.getValue() instanceof TypeMirror tm) bld.adapter = tm;
|
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" -> {
|
case "nullSafe" -> {
|
||||||
if (bld.nullSafe != null) throw new IllegalArgumentException("Duplicate annotation parameter: nullSafe");
|
if (bld.nullSafe != null) throw new IllegalArgumentException("Duplicate annotation parameter: nullSafe");
|
||||||
|
|
Loading…
Reference in New Issue