Java中target如何使用?

lxlacie
浏览 2486回答 1
1回答

car

package com.oreilly.tiger.ch06; import java.lang.annotation.ElementType; import java.lang.annotation.Target; /**  * Annotation type to indicate a task still needs to be completed  */ @Target({ElementType.TYPE,          ElementType.METHOD,          ElementType.CONSTRUCTOR,          ElementType.ANNOTATION_TYPE}) public @interface TODO {   String value(); }
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java