Reposition Example Usage sections above @param/@return in JavaDoc#36
Merged
Merged
Conversation
Copilot
AI
changed the title
Move Example Usage sections above @param/@return in JavaDoc
Reposition Example Usage sections above @param/@return in JavaDoc
May 30, 2026
Copilot created this pull request from a session on behalf of
mercyblitz
May 30, 2026 09:59
View session
🤖 Augment PR SummarySummary: Improves JavaDoc readability by moving “Example Usage” sections above the Changes:
Technical Notes: This PR changes documentation ordering/whitespace only; no runtime logic is modified. 🤖 Was this summary useful? React with 👍 or 👎 |
| * <pre>{@code | ||
| * Log4jLogger logger = new Log4jLogger("io.microsphere"); | ||
| * }</pre> | ||
| * @param loggerName the name of the logger |
There was a problem hiding this comment.
Note: .github/scripts/generate-wiki-docs.py treats the Javadoc description as everything before the first @ tag; moving the <h3>Example Usage</h3>/<pre> block above @param will now include that HTML in method.description and may duplicate or awkwardly render examples in generated wiki docs.
Severity: low
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JavaDoc comments in logging modules had Example Usage sections positioned after parameter documentation, reducing readability. Reorganized 14 files to place Example Usage code examples above
@param/@returntags for better documentation flow.Changes
Log4jLogger.javaLog4j2Logger.java,LogEventComparator.java,InMemoryAppender.java, layout utilities, andLog4j2Utils.javaLoggingMXBeanAdapter.javaand 6 test infrastructure filesExample
Documentation structure unchanged; formatting preserved.