Clean up TODOs
This commit is contained in:
parent
37bc7f9782
commit
f7850f9109
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue