fix(serialize-generator): Just use null directly! What could go wrong?
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d129e6950d
commit
c81d7e0041
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user