java-docs▌
github/awesome-copilot · updated Apr 8, 2026
Javadoc best practices for documenting Java types, methods, and members.
- ›Public and protected members require Javadoc comments; package-private and private members are encouraged, especially for complex code
- ›Use standard tags: @param for parameters, @return for return values, @throws for exceptions, @see for cross-references, and @since for version tracking
- ›First sentence serves as summary description and should end with a period; parameter descriptions start lowercase without period
Java Documentation (Javadoc) Best Practices
- Public and protected members should be documented with Javadoc comments.
- It is encouraged to document package-private and private members as well, especially if they are complex or not self-explanatory.
- The first sentence of the Javadoc comment is the summary description. It should be a concise overview of what the method does and end with a period.
- Use
@paramfor method parameters. The description starts with a lowercase letter and does not end with a period. - Use
@returnfor method return values. - Use
@throwsor@exceptionto document exceptions thrown by methods. - Use
@seefor references to other types or members. - Use
{@inheritDoc}to inherit documentation from base classes or interfaces.- Unless there is major behavior change, in which case you should document the differences.
- Use
@param <T>for type parameters in generic types or methods. - Use
{@code}for inline code snippets. - Use
<pre>{@code ... }</pre>for code blocks. - Use
@sinceto indicate when the feature was introduced (e.g., version number). - Use
@versionto specify the version of the member. - Use
@authorto specify the author of the code. - Use
@deprecatedto mark a member as deprecated and provide an alternative.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.8★★★★★26 reviews- ★★★★★Soo Smith· Dec 28, 2024
Useful defaults in java-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Shikha Mishra· Dec 20, 2024
Useful defaults in java-docs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Aditi Liu· Nov 19, 2024
java-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Rahul Santra· Nov 11, 2024
java-docs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Kabir Johnson· Nov 11, 2024
Solid pick for teams standardizing on skills: java-docs is focused, and the summary matches what you get after install.
- ★★★★★Aditi Taylor· Oct 10, 2024
Keeps context tight: java-docs is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Pratham Ware· Oct 2, 2024
Keeps context tight: java-docs is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Aditi Sethi· Oct 2, 2024
java-docs has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Oshnikdeep· Sep 21, 2024
We added java-docs from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Neel Huang· Sep 21, 2024
java-docs fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 26