Closed sebersole closed 2 months ago
Add MutableAnnotationTarget#replace which replaces an annotation, kind of a combination of apply and add.
Works "across" repeatables and containers. E.g. replacing @SecondaryTable will also replace @SecondaryTables, etc.
@SecondaryTable
@SecondaryTables
Initial proposed API:
interface MutableAnnotationTarget { ... <A extends Annotation> MutableAnnotationUsage<A> replace(AnnotationDescriptor<A> descriptor); <S extends Annotation, P extends Annotation> MutableAnnotationUsage<P> replace(AnnotationDescriptor<S> singular, AnnotationDescriptor<P> plural); }
Add MutableAnnotationTarget#replace which replaces an annotation, kind of a combination of apply and add.
Works "across" repeatables and containers. E.g. replacing
@SecondaryTable
will also replace@SecondaryTables
, etc.Initial proposed API: