fix(serialize-generator): Just use null directly! What could go wrong?
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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.adapter == null) throw new IllegalArgumentException("Missing annotation parameter: adapter");
|
||||||
if (bld.nullSafe == null) throw new IllegalArgumentException("Missing annotation parameter: nullSafe");
|
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, null, null, false, false, hasManifold));
|
||||||
toGenerate.add(SerializableClass.of((TypeElement) element, bld.adapter, false, $void, $void, false, false, hasManifold));
|
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unexpected annotation: " + mirror.getAnnotationType());
|
throw new IllegalArgumentException("Unexpected annotation: " + mirror.getAnnotationType());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue