Skip to content

Conversation

@elharo
Copy link
Contributor

@elharo elharo commented Oct 25, 2025

These are automated fixes.

@elharo elharo requested a review from Copilot October 25, 2025 16:47
@elharo elharo assigned mukulga and unassigned mukulga Oct 25, 2025
@elharo elharo requested a review from mukulga October 25, 2025 16:48
Copy link

Copilot AI left a 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
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* @author Rahul Srivastava, Sun Microsystems Inc
* @author Rahul Srivastava, Sun Microsystems Inc.

Copilot uses AI. Check for mistakes.
* @param desc The Grammar Description.
* @return The removed grammar.
* @param desc the Grammar Description
* @return The removed grammar
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* @return The removed grammar
* @return the removed grammar

Copilot uses AI. Check for mistakes.
*
**********************************************************************/
/**
* *******************************************************************
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* *******************************************************************

Copilot uses AI. Check for mistakes.
*
********************************************************************/
/**
* ****************************************************************
Copy link

Copilot AI Oct 25, 2025

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 uses AI. Check for mistakes.

/******************************************************************
/**
* ***************************************************************
Copy link

Copilot AI Oct 25, 2025

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.

Copilot uses AI. Check for mistakes.
*
* @param featureId the feature identifier
* @return true if the feature is supported
* @throws XMLConfigurationException thrown for configuration error.
Copy link

Copilot AI Oct 25, 2025

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.

Copilot uses AI. Check for mistakes.
*
* @throws MissingResourceException Thrown if the message with the
* specified key cannot be found.
* @return returns the formatted message
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* @return returns the formatted message
* @return the formatted message

Copilot uses AI. Check for mistakes.
* @see DOMErrorHandler
*
* @author Gopal Sharma, SUN Microsystems Inc.
* @author Gopal Sharma, SUN Microsystems Inc
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* @author Gopal Sharma, SUN Microsystems Inc
* @author Gopal Sharma, SUN Microsystems Inc.

Copilot uses AI. Check for mistakes.
*
* @author Gopal Sharma, SUN MicroSystems Inc.
* @author Elena Litani, IBM
* @author Gopal Sharma, SUN MicroSystems Inc
Copy link

Copilot AI Oct 25, 2025

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.

Suggested change
* @author Gopal Sharma, SUN MicroSystems Inc
* @author Gopal Sharma, SUN MicroSystems Inc.

Copilot uses AI. Check for mistakes.
* @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>
Copy link

Copilot AI Oct 25, 2025

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.

Copilot uses AI. Check for mistakes.
@SingingBush
Copy link
Contributor

SingingBush commented Oct 26, 2025

just out of curiosity. was copilot used to generate these changes?

@elharo
Copy link
Contributor Author

elharo commented Oct 26, 2025

no, https://github.com/elharo/docfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants