Skip to content

Conversation

@mdzyuba
Copy link
Contributor

@mdzyuba mdzyuba commented Jan 16, 2026

This fix depends on PR#5 and PR#7.

Dependencies updated:
- Java: 8 → 11
- JDOM: 1.1.3 → JDOM2 2.0.6.1
- Commons CLI: 1.4 → 1.9.0
- Commons Lang: 3.12.0 → 3.17.0

Plugins updated:
- Maven Assembly: 3.1.1 → 3.7.1
- Maven Surefire: 3.2.5 → 3.5.2

Java 11 requirement:
The following dependencies require Java 11 as minimum:
- JUnit Jupiter 5.11.4 (requires Java 11+)
- Spotless Maven Plugin 2.44.0 (requires Java 11+)

Documentation:
- Updated README

Code changes:
- Refactored AndroidXmlOutputter to use composition instead of inheritance since JDOM2's XMLOutputter cannot be subclassed.
Remove incorrect code that stripped the last 2 bytes from the output file.
The original comment said 'Strip double line break' but this was actually
removing the final '>' character and newline from the closing tag.

Changes:
- Fixed Main.java to write complete file content
- Added try-with-resources for FileOutputStream to fix resource leak
- Added integration test with closing_tag_input.xml and closing_tag_expected.xml
@mdzyuba mdzyuba force-pushed the fix_bug_output_truncation branch from 62b0a83 to 6dbb0b8 Compare January 21, 2026 19:19
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.

1 participant