Clean up TODOs

This commit is contained in:
Johannes Frohnmeyer 2022-11-01 10:29:53 +01:00
parent 37bc7f9782
commit f7850f9109
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 0 additions and 2 deletions

View File

@ -401,7 +401,6 @@ public class GsonCompileProcessor extends AbstractProcessor2 {
return;
}
//TODO handle lists, sets, arrays, other common types (-> https://github.com/bluelinelabs/LoganSquare/blob/development/docs/TypeConverters.md)
//TODO support comment annotations
code.addStatement(getAdapter(prop, klazz, typeVariables, otherAdapters) + ".write(" + writer + ", " + get + ")", prop.getCallableName());
}
@ -463,7 +462,6 @@ public class GsonCompileProcessor extends AbstractProcessor2 {
}
}
message.printMessage(options.containsKey("gsonCompileNoReflect") ? Diagnostic.Kind.ERROR : Diagnostic.Kind.WARNING, "Falling back to adapter detection for unsupported type " + prop.getType(), prop.getElement());
//TODO handle known custom type adapters and return proper static class
TypeName typeAdapterType = ParameterizedTypeName.get(Const.TYPE_ADAPTER, targetType);
CodeBlock.Builder block = CodeBlock.builder();
block.add("$T.HOLDER.getGson().getAdapter(", Const.CCORE);