$T format string should interpret Spec types
Author: markelliotCreated Aug 9, 2016Updated Oct 11, 2022
I'm making a bean-builder and want to do some defensive copying for (for instance) lists -- I have all the FieldSpecs floating around, so essentially I want to write code statements like:
"$1T __$1N = new $T<>()", spec, ArrayList.classBut T formatter arguments won't accept a FieldSpec.
Source: square/javapoet