Fix deprecated methods - Reporting plugin - #548
parth-sharma-10 wants to merge 1 commit into
Conversation
- BirtReadOnlyConnectionFactory: StringUtils.containsIgnoreCase is deprecated in commons-lang3 3.20; use Strings.CI.contains instead. - BirtReportingProcessServiceImpl: IEngineTask#getAppContext() returns a raw Map (BIRT's own API predates generics), causing unchecked put() warnings in setConnectionDetail; scope a @SuppressWarnings to that method since the raw type comes from a third-party API.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe report services replace deprecated case-insensitive string checks with ChangesMaintenance updates
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Refactor Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The warning cleanup preserves the described behavior, and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by #549 — same change, rebranched as |
Summary
After the Java 25 / Spring Boot 4.1 upgrade,
./mvnw clean packagereports two deprecation warnings in the reporting plugin:BirtReadOnlyConnectionFactoryusesStringUtils.containsIgnoreCase, deprecated in commons-lang3 3.20 in favor ofStrings.CI.contains.BirtReportingProcessServiceImpl#setConnectionDetailcalls.put()on the rawMapreturned by BIRT'sIEngineTask#getAppContext()(a third-party API that predates generics), producing unchecked-operation warnings.Changes
StringUtils.containsIgnoreCasewithStrings.CI.containsinbeginReadOnlyTransaction.@SuppressWarnings("unchecked")tosetConnectionDetail, with a comment noting why (rawMapfrom BIRT's API, not something we control).Verified with
JAVA_HOMEpointed at JDK 25:mvnw clean compile -Dmaven.compiler.showDeprecation=truenow reports zero warnings from plugin source (the remainingsun.misc.Unsafewarning is lombok's own internal code, unrelated to this plugin's source).Test plan
./mvnw clean compileon JDK 25 — no deprecation/unchecked warnings from plugin source./mvnw test-compileon JDK 25 — clean./mvnw test -Dtest=BirtReadOnlyConnectionFactoryTest,BirtReportingProcessServiceImplTest— 44/44 pass./mvnw spotless:check— cleanSummary by CodeRabbit