当前位置:编程学习 > JSP >>

to 退退:开发中如何让一个方法deprecated?

答案:这是通过javadoc来做到的。
注意下面的@deprecated的用法

    /**
     * Sets the name.
     * @param name The name to set
     * @deprecated don't use this method.
     */
    public void setName(String name) {
        this.name = name;
    }

上一个:在Java中读取Excel文件的内容
下一个:Whats new in eclipse 2.1

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,