Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is unascribed author in java docs

Tags:

java

javadoc

Some Java classes, as Object define in java docs @author as unascribed

 * @author  unascribed
 * @see     java.lang.Class
 * @since   JDK1.0
 */
public class Object {

I found that it may be used when author is unknown

If the author is unknown, use "unascribed" as the argument to @author.

And found a JDK not-issue which use the term when no author is defined

many reflection classes unascribed

Many of the new APIs have no @author tag.

So unascribed is basically a Java equivalent to "John Doe"/"Jane Doe"?

like image 783
user7294900 Avatar asked Dec 26 '18 10:12

user7294900


People also ask

What does @author mean in Javadoc?

Javadoc @author tag In Javadoc, there is a @author tag, which is supposed to indicate the original author of the file and possibly all contributors, who made significant changes to the file. public class MaxLengthValidator {...

Who can see the author of a javadoc tag?

The tag is not actually included in generated Javadoc. At least not by default - you need to explicitly specify -author parameter to include the information in the generated documentation. Therefore it is only visible to a person, who is viewing the source code.

Should I use @author in my API?

I would say that for most purposes @author is unwanted noise. The user of your API shouldn't - and probably doesn't - care, or want to know, who wrote which parts. And, as you have already stated, SVN already holds this information in a much more authoritative way than the code can.

How to create a Javadoc document?

To create a JavaDoc you do not need to compile the Java file. We can generate JavaDoc documentation in two ways. The command-line tool allows us to run the command through it. This command can be executed on a command line and has the following syntax. In the above command, we assume that all the files and Java classes are in the src folder.


1 Answers

Of course, the most basic way not to specify the author of some class is not to specify the author, i.e. not to write an @author tag.

Defining something like "unascribed" for not documenting an author is already redundant and (to me) seems a bit weird.

like image 113
Ralf Kleberhoff Avatar answered Oct 03 '22 08:10

Ralf Kleberhoff