Closed
Description
Kazuki Shimizu opened SPR-12743 and commented
Support @NumberFormat
as a meta-annotation the same as @DateTimeFormat
.
@NumberFormat(style = NumberFormat.Style.PERCENT)
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PercentNumber {}
public class TestBean {
@PercentNumber
private Double percent;
// ...
}
Affects: 4.1 GA
Issue Links:
- TypeDescriptor should support arbitrary levels of meta-annotations [SPR-12793] #17390 TypeDescriptor should support arbitrary levels of meta-annotations ("is depended on by")
Referenced from: pull request #741
1 votes, 3 watchers