Skip to content

Merge the static hardening recipes into the public factory classes - #56

Merged
garydgregory merged 1 commit into
mainfrom
feature/merge-hardeners-into-factories
Aug 28, 2026
Merged

Merge the static hardening recipes into the public factory classes#56
garydgregory merged 1 commit into
mainfrom
feature/merge-hardeners-into-factories

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Each public Hardening*Factory absorbs its package-private hardener (DocumentBuilderHardener and siblings): the harden methods, helpers and constants move onto the entry point, the hardener files are deleted, and the wrap methods are removed since each wrapper is now constructed from its own class only.

On HardeningSAXParserFactory the reader and source variants are renamed to harden(XMLReader) and harden(Source) overloads.

Assisted-By: Claude Fable 5 noreply@anthropic.com

Each public Hardening*Factory absorbs its package-private hardener
(DocumentBuilderHardener and siblings): the harden methods, helpers and
constants move onto the entry point, the hardener files are deleted, and
the wrap methods are removed since each wrapper is now constructed from
its own class only. On HardeningSAXParserFactory the reader and source
variants become harden(XMLReader) and harden(Source) overloads.

Assisted-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWJ4LAxx3TX5RwNvwKbAS3
@ppkarwasz

Copy link
Copy Markdown
Member Author

This was intentionally pushed to this repository, so I can stack another PR on top.

Comment thread src/main/java/org/apache/commons/xml/HardeningSAXParserFactory.java
@garydgregory
garydgregory merged commit 41583da into main Aug 28, 2026
18 checks passed
@garydgregory
garydgregory deleted the feature/merge-hardeners-into-factories branch August 28, 2026 10:51
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