I finished the Java / Android project, and now I need to comment on the codes (mainly classes and important methods).
I need to do this, following the best industry standards, since later, if someone else needs to be modified, he must shoot forward well.
I read a lot of articles and found 3 main types of java comment styles.
- Single comment (// .....)
- Block comments (/ * ....... * /)
- Doc comments (/ ** ....... * /)
I read mainly about options 2 and 3. Discussion
So, I thought to get around the second option, since I do not need to create HTML documents, since these classes will not be used by other people, and this is the implementation of this application.
I wonder what are the best methods in block commenting that indicate the type of “return”, “parameters”, and “description description” of a method or class.
I would like to hear the best industry standards for commenting on java code.
Thanks in advance...!!!
source
share