-
Notifications
You must be signed in to change notification settings - Fork 12
Fix Javadoc issues in org.apache.xerces.util per Oracle conventions #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR standardizes Javadoc formatting in the org.apache.xerces.util package to comply with Oracle's Javadoc conventions. The changes focus on updating documentation style while preserving code functionality.
Key changes include:
- Converting Javadoc parameter descriptions from uppercase to lowercase format (e.g., "The" → "the")
- Standardizing sentence-ending punctuation in field and method documentation
- Removing extraneous blank lines and asterisks in Javadoc comments
Reviewed Changes
Copilot reviewed 41 out of 44 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| XMLStringBuffer.java | Removed empty Javadoc blocks and standardized method documentation |
| XMLResourceIdentifierImpl.java | Updated parameter descriptions to lowercase and removed trailing blank lines |
| XMLLocatorWrapper.java | Removed trailing blank line from class-level Javadoc |
| XMLGrammarPoolImpl.java | Standardized parameter and return tag formatting |
| XMLErrorCode.java | Updated field comments with proper sentence endings and parameter descriptions |
| XMLEntityDescriptionImpl.java | Converted parameter descriptions to lowercase |
| XMLChar.java | Fixed period placement in author tag and updated parameter/method descriptions |
| XMLCatalogResolver.java | Reordered exception tags and standardized field comment endings |
| XMLAttributesImpl.java | Relocated @see tag and updated parameter descriptions throughout |
| XML11Char.java | Standardized field comments and method descriptions with proper punctuation |
| URI.java | Reformatted multiline comments and converted @exception to @throws tags |
| SynchronizedSymbolTable.java | Updated parameter descriptions to lowercase |
| SymbolTable.java | Moved @see tag and standardized parameter formatting |
| SymbolHash.java | Updated method documentation with proper sentence endings |
| StAXLocationWrapper.java | Removed trailing blank line from class Javadoc |
| SoftReferenceSymbolTable.java | Relocated @see tag and updated constructor parameters |
| ShadowedSymbolTable.java | Standardized parameter descriptions |
| SecurityManager.java | Updated field comment endings with periods |
| SAXMessageFormatter.java | Converted parameter descriptions and exception tags |
| SAXLocatorWrapper.java | Removed trailing blank line |
| SAXInputSource.java | Updated setter method parameter descriptions |
| PrimeNumberSequenceGenerator.java | Relocated @xerces.internal tag |
| ParserConfigurationSettings.java | Standardized parameter descriptions and exception tags |
| NamespaceSupport.java | Updated parameter description format |
| MessageFormatter.java | Relocated @see tag and updated method documentation |
| LocatorProxy.java | Removed trailing blank line |
| JAXPNamespaceContextWrapper.java | Removed trailing blank line |
| IntStack.java | Relocated author tag after blank line |
| HTTPInputSource.java | Updated field comments and constructor parameter descriptions |
| ErrorHandlerWrapper.java | Relocated @see tag and reformatted multiline comment |
| ErrorHandlerProxy.java | Removed trailing blank line |
| EntityResolverWrapper.java | Relocated @see tag and reordered exception tags |
| EntityResolver2Wrapper.java | Reordered exception tags |
| EncodingMap.java | Updated field comments and parameter descriptions |
| DefaultErrorHandler.java | Removed trailing blank line |
| DatatypeMessageFormatter.java | Standardized parameter and exception documentation |
| DOMUtil.java | Reformatted multiline comments with proper structure |
| DOMErrorHandlerWrapper.java | Relocated @see tag and updated field/parameter descriptions |
| DOMEntityResolverWrapper.java | Relocated @see tag and reordered exceptions |
| AugmentationsImpl.java | Reformatted method descriptions and parameter tags |
| AttributesProxy.java | Removed trailing blank line |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| * @author Michael Glavassevich, IBM | ||
| * @author Rahul Srivastava, Sun Microsystems Inc. | ||
| * | ||
| * @author Rahul Srivastava, Sun Microsystems Inc |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The author tag is missing a period at the end. According to Oracle Javadoc conventions, author tags should end with appropriate punctuation (typically a period). This should be 'Sun Microsystems Inc.' to match the format used in other files.
| * @author Rahul Srivastava, Sun Microsystems Inc | |
| * @author Rahul Srivastava, Sun Microsystems Inc. |
| * @param desc The Grammar Description. | ||
| * @return The removed grammar. | ||
| * @param desc the Grammar Description | ||
| * @return The removed grammar |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent capitalization in return tag. The return description starts with 'The' (uppercase) while other updated return tags in the same file use lowercase. This should be 'the removed grammar' to maintain consistency with the PR's standardization goal.
| * @return The removed grammar | |
| * @return the removed grammar |
| * | ||
| **********************************************************************/ | ||
| /** | ||
| * ******************************************************************* |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The asterisk separator line creates unusual formatting. This should be a standard Javadoc comment without the asterisk line separator on line 25, as this non-standard formatting is inconsistent with Oracle Javadoc conventions.
| * ******************************************************************* |
| * | ||
| ********************************************************************/ | ||
| /** | ||
| * **************************************************************** |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the previous comment, this asterisk separator line creates non-standard Javadoc formatting. The separator line with asterisks on line 62 should be removed to follow Oracle Javadoc conventions.
|
|
||
| /****************************************************************** | ||
| /** | ||
| * *************************************************************** |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The asterisk separator creates non-standard formatting. Line 75 should not contain asterisk separators as this violates Oracle Javadoc conventions.
| * | ||
| * @param featureId the feature identifier | ||
| * @return true if the feature is supported | ||
| * @throws XMLConfigurationException thrown for configuration error. |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent sentence ending. The exception description ends with a period on line 187 ('error.'), but line 211 in the same file has the same text. One uses a period, creating inconsistency in the documentation style.
| * | ||
| * @throws MissingResourceException Thrown if the message with the | ||
| * specified key cannot be found. | ||
| * @return returns the formatted message |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant wording in return tag. The description 'returns the formatted message' on line 47 is redundant since @return already indicates that something is being returned. Should be '@return the formatted message' to match the style used elsewhere in the PR.
| * @return returns the formatted message | |
| * @return the formatted message |
| * @see DOMErrorHandler | ||
| * | ||
| * @author Gopal Sharma, SUN Microsystems Inc. | ||
| * @author Gopal Sharma, SUN Microsystems Inc |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing period at end of author tag. Should be 'SUN MicroSystems Inc.' on line 37 to match Oracle Javadoc conventions and maintain consistency with other author tags that include periods.
| * @author Gopal Sharma, SUN Microsystems Inc | |
| * @author Gopal Sharma, SUN Microsystems Inc. |
| * | ||
| * @author Gopal Sharma, SUN MicroSystems Inc. | ||
| * @author Elena Litani, IBM | ||
| * @author Gopal Sharma, SUN MicroSystems Inc |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing period at end of author tag. Should be 'SUN MicroSystems Inc.' on line 38 to follow Oracle Javadoc conventions and maintain consistency.
| * @author Gopal Sharma, SUN MicroSystems Inc | |
| * @author Gopal Sharma, SUN MicroSystems Inc. |
| * @param key Identifier, can't be <code>null</code> | ||
| * Remove additional info from the Augmentations structure. | ||
| * | ||
| * @param key identifier, can't be <code>null</code> |
Copilot
AI
Oct 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent capitalization in parameter description. On line 76, 'identifier' starts with lowercase, but on lines 47 and 65 in the same file, the same parameter uses lowercase. However, the pattern should be consistent. Since most have been changed to lowercase, this should remain lowercase, but verify consistency across all three occurrences.
|
just out of curiosity. was copilot used to generate these changes? |
These are automated fixes.