Closed beikov closed 2 months ago
WDYT about removing the lambda configuration from DynamicClassDetails#applyAttribute
as well? After all that method returns the DynamicFieldDetails
it created so one can simply apply the configuration on the returned value.
There is
AnnotationDescriptor#ceateUsage
and maybe utility methods that take a lambda callback for initializing theMutableAnnotationUsage
. Since that essentially produces anonymous hidden classes at runtime, this should IMO be removed. The value of those methods is questionable anyway.