Compare commits
2 Commits
f229dd496b
...
8db740a9eb
Author | SHA1 | Date |
---|---|---|
Johannes Frohnmeyer | 8db740a9eb | |
Johannes Frohnmeyer | efff813ed6 |
|
@ -114,7 +114,8 @@ public class SerializeGeneratorProcessor extends AbstractProcessor2 {
|
|||
switch (name) {
|
||||
case "adapter" -> {
|
||||
if (bld.adapter != null) throw new IllegalArgumentException("Duplicate annotation parameter: adapter");
|
||||
bld.adapter = (TypeMirror) value.getValue();
|
||||
if (value.getValue() instanceof TypeMirror tm) bld.adapter = tm;
|
||||
else throw new IllegalArgumentException("Unexpected value type: " + value.getValue().getClass() + " (with value" + value.getValue() + ")");
|
||||
}
|
||||
case "nullSafe" -> {
|
||||
if (bld.nullSafe != null) throw new IllegalArgumentException("Duplicate annotation parameter: nullSafe");
|
||||
|
|
|
@ -33,7 +33,6 @@ public class InferredAdapter extends AdapterAdapter<InferredAdapter.Hydrated> {
|
|||
var tmp = findTypeAdapterClass(type, refs);
|
||||
// Ignore nullSafe for now
|
||||
if (tmp != null) {
|
||||
message.printMessage(Diagnostic.Kind.WARNING, "Inferred type adapter for " + type + " to " + tmp.left() + " (nullSafe: " + tmp.right() + ")");
|
||||
this.typeAdapterClass = tmp.left();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue