@Retention(RetentionPolicy.CLASS) public @interface PerformanceOptimized { String message() default ""; int threshold() default 0; boolean loggingEnabled() default false; } @PerformanceOptimized(threshold = 1000, loggingEnabled = true) public void performTimeConsumingTask() { }


上一篇:
下一篇:
切换中文