Why package info Java useful?

When I run checkstyle on my java project, it loses package info Java file For some courses, but not all I don't know why this news sometimes only appears here In addition, my project is running well without package info java.

package-info. What does java do? Do I really need my java project?

Solution

It is used to generate javadoc.xml for the package

/**
* Domain classes used to produce .....
* <p>
* These classes contain the ......
* </p>
*
* @since 1.0
* @author somebody
* @version 1.0
*/
package com.domain;

Will be com Domain package generation package information:

Example results: https://jaxb.java.net/nonav/2.2.1/docs/api/overview-summary.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>