Skip to content

Conversation

@SingingBush
Copy link
Contributor

No description provided.

@SingingBush SingingBush requested a review from elharo December 4, 2025 19:56
* Send startPrefixMapping events
* Send startPrefixMapping events.
*
* @throws SAXException if an error occurs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this thrown, ever? From the code it looks like it might not be.

Copy link
Contributor Author

@SingingBush SingingBush Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not here but it's abstract class, so expect that other classes will override so want the docs to make sure they make sense when overridden

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abstract class but final method, so not overridden

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I'll change it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the underlying call to startPrefixMapping could throw depending on the handler implementation

* Send startPrefixMapping events
* Send startPrefixMapping events.
*
* @throws SAXException if an error occurs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abstract class but final method, so not overridden

* Send endPrefixMapping events
* Send endPrefixMapping events.
*
* @throws SAXException if an error occurs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this can be thrown either

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix shortly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for this one the call to endPrefixMapping could throw depending on the handler implementation

@SingingBush
Copy link
Contributor Author

I took another look at both of these. There are methods on the ContentHandler that are used within each which can throw (based on method signature of the ContentHandler interface. As implementations can be changed it's worth keeping these javadocs as-is.

@elharo elharo merged commit 1a1940a into apache:main Dec 5, 2025
5 checks passed
@SingingBush SingingBush deleted the javadoc/AbstractSAXParser branch December 9, 2025 23:47
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.

2 participants