slachiewicz opened a new pull request, #1009: URL: https://github.com/apache/maven-doxia/pull/1009
Removes dependencies on commons-lang3 and commons-text (transitively depends on commons-lang3). ## Changes - **Added `DoxiaStringUtils`** - Implements 9 String utility methods previously from commons-lang3: `repeat()`, `replace()`, `isNotEmpty()`, `isBlank()`, `isAllBlank()`, `split()`, `removeEnd()`, `stripStart()`, `countMatches()` - **Added `HtmlEntityUtils`** - Implements HTML/XML entity unescaping previously from commons-text: `unescapeHtml4()`, `unescapeXml()` with full HTML4 entity support (252 named entities) - **Updated 28 files** - Replaced all imports and method calls from Apache Commons to new utility classes across doxia-core and all 5 doxia-modules - **Removed dependencies** - Deleted commons-lang3 from 6 pom.xml files and commons-text from doxia-core pom ## Implementation Notes The new utilities are minimal drop-in replacements containing only the functionality actually used by the project. Key implementation details: - `isAllBlank()` uses varargs to match original signature - `unescapeHtml4()` does not unescape `'` (HTML4 spec-compliant) - `unescapeXml()` includes `'` (XML spec-compliant) - `repeat()` includes overflow protection for large repeat counts - Entity parsing validates content length before substring operations All 298 existing tests pass without modification. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
