注解与注释
来源:互联网 发布:团委工作总结数据 编辑:程序博客网 时间:2024/05/18 00:39
/**
* This is demo
* @deprecated This variable is for internal use only. It will
* become package protected in future versions.
* */
public static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
@deprecated暗含这个方法是Deprecated,所以加了横线;
/**
* This is demo
* @Deprecated This variable is for internal use only. It will
* become package protected in future versions.
* */
public static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
注意:@Deprecated这个annotation类型和javadoc中的 @deprecated这个tag是有区别的:前者是java编译器识别的,而后者是被javadoc工具所识别用来生成文档(包含程序成员为什么已经过时、它应当如何被禁止或者替代的描述)。
正常的表达习惯是:
/**
* Returns the day of the month represented by this <tt>Date</tt> object.
* The value returned is between <code>1</code> and <code>31</code>
* representing the day of the month that contains or begins with the
* instant in time represented by this <tt>Date</tt> object, as
* interpreted in the local time zone.
*
* @return the day of the month represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by <code>Calendar.get(Calendar.DAY_OF_MONTH)</code>.
* @deprecated
*/
@Deprecated
public int getDate() {
return normalize().getDayOfMonth();
}
@Deprecated
public static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
//@Deprecated
public static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
//@deprecated
public static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
- 注解与注释
- Java注释与注解
- (2.1.19)注释与注解
- (2.1.19)注释与注解
- Spring之注解 @Autowired 注释与@Resource注释的区别
- 注释和注解
- struts2注解 零注释
- swift:代码 注释,注解
- javax.persistence 注释注解
- TestNG基本注解(注释)
- 注释与嵌套注释
- JDK 5 Annotation\注解\注释\自定义注解
- JDK 5 Annotation\注解\注释\自定义注解
- JDK 5 Annotation\注解\注释\自定义注解
- Closeable注释的中文注解
- 自定义注解和反射注释
- testng 2 基本注解(注释)
- java注解(不是注释)
- Android开发之Android和linux的区别是什么?
- 使用作业,每天定时将DB中信息导出到指定的文件夹中txt文本中(文件格式按照时间)
- MVC POST方式传参(同步方式)
- android notification
- tool
- 注解与注释
- android grally
- struct termios结构体
- 也谈jwebap使用
- 各种排序算法全集
- svn使用
- 《Linux那些事儿之我是USB》我是U盘(11)从协议中来到协议中去
- 变式表
- just leaking问题的解决办法