Inline comments in Java: / * * versus / *?

Why do I prefer to write inline comments in Java, as shown below:

/** Init operation */
mindControlLaser.engage();

Instead of just using one *:

/* i'm a happy comment */

Eclipse colors syntax in different ways, but does the "tool chain" (Javadoc, eclipse, etc.) really have any advantages when using / * * /?

Solution

There is no reason to comment inline

/* * signal Javadoc utility to automatically extract API documentation Using it inside a method has no effect

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
分享
二维码
< <上一篇
下一篇>>