fix(serialize-generator): Just use null directly! What could go wrong?
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2024-04-24 10:11:34 +02:00
parent d129e6950d
commit c81d7e0041
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -126,8 +126,7 @@ public class SerializeGeneratorProcessor extends AbstractProcessor2 {
if (bld.adapter == null) throw new IllegalArgumentException("Missing annotation parameter: adapter");
if (bld.nullSafe == null) throw new IllegalArgumentException("Missing annotation parameter: nullSafe");
TypeMirror $void = elements.getTypeElement("void").asType();
toGenerate.add(SerializableClass.of((TypeElement) element, bld.adapter, false, $void, $void, false, false, hasManifold));
toGenerate.add(SerializableClass.of((TypeElement) element, bld.adapter, false, null, null, false, false, hasManifold));
} else {
throw new IllegalArgumentException("Unexpected annotation: " + mirror.getAnnotationType());
}