码迷,mamicode.com
首页 > 编程语言 > 详细

package-info.java

时间:2014-05-23 09:39:01      阅读:328      评论:0      收藏:0      [点我收藏+]

标签:style   blog   c   code   java   tar   

问题:

看开源项目发现这个package-info.java文件有些特殊,从名字上面也可以猜出这个类是与package有关的。具体是怎么回事呢?

:就是记录包的信息

To create a package comment file, you have a choice of two files to place your comments:

  • package-info.java - Can contain a package declaration, package annotations, package comments and Javadoc tags. This file is generally preferred over package.html.
  • package.html - Can contain only package comments and Javadoc tags, no package annotations.

参考:

http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#packagecomment

http://www.intertech.com/Blog/whats-package-info-java-for/

http://blog.sina.com.cn/s/blog_93dc666c0101gzlr.html

http://stackoverflow.com/questions/3644726/javadoc-package-html-or-package-info-java

http://book.51cto.com/art/201202/317538.htm

 

package-info.java,布布扣,bubuko.com

package-info.java

标签:style   blog   c   code   java   tar   

原文地址:http://www.cnblogs.com/haimingwey/p/3737961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!