Repository navigation
chore(flow-polymer2lit): drop commons-io and commons-text dependencies - #27608
Open
totally-not-ai[bot] wants to merge 3 commits into
Open
totally-not-ai[bot] wants to merge 3 commits into
totally-not-ai[bot] wants to merge 3 commits into
Conversation
flow-plugin-base uses commons-io in its own main code but only got it transitively through flow-polymer2lit, so it now declares it directly. Decode converter input with UTF-8 replacement like before instead of Files.readString, which throws on malformed input. Extend the getter/setter snapshot test with a String getter and an int property, generated with the previous StringSubstitutor-based code.
Contributor
Author
Type of change
|
Artur-
marked this pull request as ready for review
December 1, 2026 20:46
Contributor
|
vaadin-review-bot
left a comment
Collaborator
There was a problem hiding this comment.
✅ Nothing to flag — the changes look good.
caalador
approved these changes
Dec 2, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


refactor · flow-polymer2lit, flow-plugin-base · projects using the Maven or Gradle plugin
The Polymer-to-Lit converter pulled in commons-io and commons-text (plus commons-lang3) only to read a file and fill four small code templates. Both libraries are now gone from the converter; the JDK does the same work. The plugin base module, which uses commons-io itself and silently got it through the converter, now declares it directly.
Risks:
flow-polymer2lit; commons-io stays, now viaflow-plugin-base.✅ No public API, behaviour, security, memory, serialization, threading or performance impact.
Replaced
IOUtils.toStringinFrontendConverterandServerConverterwith a JDK read that keeps the same UTF-8 decoding with replacement of malformed bytes.Replaced
StringSubstitutorin the generated getter/setter code ofServerConverterwith string concatenation; output is unchanged.Removed
commons-ioandcommons-textfromflow-polymer2lit/pom.xml.Added a direct
commons-iodependency toflow-plugin-base, which uses it in its own main code.Extended the getter/setter snapshot test with a
Stringgetter and anintproperty; the expected output was generated with the previous code.