Backported: Fix java compilation warnings#1123
Merged
jacopoc merged 7 commits intoApr 18, 2026
Merged
Conversation
… deprecated methods in the org.apache.commons.cli library (cherry picked from commit 644e4d3)
…ations to resolve compilation warnings (cherry picked from commit 685c194)
(cherry picked from commit b73a14c)
…olve compilation warnings (cherry picked from commit 451c414)
… resolve compilation warnings (cherry picked from commit c3085df)
After moving from lowagie to openPDF (OFBIZ-13300), getFields() in AcroFields is deprecated. Contrary to what I wrote in OFBIZ-13306, it's not related to "Upgrade java version to 21" This fixes it (present only in PdfSurveyServices class). I have also improved pdfStamper.close() missing in 2 places (almost fixed but OFBIZ-13300 was not backported, better to keep things simple). In one case I added it, in the other I used try-with-ressource. I also put a comment about openpdf:1.3.43 being the last version with com.lowagie.text embedded that is used (only) by PdfSurveyServices class. Also some formatting (cherry picked from commit 8e492c2)
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.
No description provided.