Repository navigation
[8.2] utils: drop XmlSer blanket suppress and scoped cast residuals - #3347
Merged
Merged
Conversation
…3172) Remove PSXmlSerializationHelper class-level rawtypes/unchecked by using Class<?>. Load PSCollection(String) via Class.forName into Class<?> without an unchecked ctor cast. Collapse PSItemIterator Map<?,?> casts into one asItem helper. Do not reparameterize PSWorkflowUtilsBase public raw APIs. Fixes #3172 > Co-Authored by Grok Build using grok-4.5 with agent main.
This was referenced Aug 13, 2026
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Reviewed by step-3.7-flash · Input: 67.7K · Output: 8.7K · Cached: 317.4K Review guidance: REVIEW.md from base branch |
natechadwick
approved these changes
Aug 13, 2026
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.
Summary
Second implementable residual after utils batch 8 (#3015 / PR #3173) and the merged CRTP slice (PR #3277). This PR removes more main-source suppressions without touching
PSWorkflowUtilsBasepublic rawList/MapAPIs (source-compat; still needs an explicit policy).PSXmlSerializationHelper: drop class-level@SuppressWarnings({"rawtypes","unchecked"}). Parameterize leftover rawClassasClass<?>onreadFromXML/ Jackson path (erasure-identical).PSCollection(String): assignClass.forNameto the existingClass<?>field instead of an uncheckedClass<? extends E>constructor cast.PSItemIterator: collapse two method-scoped uncheckedMap<?,?>casts into one privateasItemhelper (no new blanket suppress).Not in this PR (policy / inherent):
PSWorkflowUtilsBasepublic rawList/MapAPIs.PSCopiernestedMap-as-Vunchecked (generic recursion).PSConcurrentList.restoreListgeneric deserialization cast.Parent tracker: #2200. Module parent: #2016. Prior slice: #3277.
Fixes #3172
Operator: Grok: night-issue-prs (model grok-4.5)
Test plan
cd modules/utils && ..\..\mvnw.cmd clean install(Windows) or../../mvnw clean install(Unix).PSXmlSerializationHelperTest.readFromXmlAcceptsExplicitClassWildcard,PSCollectionTypedTest.classNameCtorLoadsMemberClassWithoutUncheckedCast,PSItemIteratorTest.multiMapRejectsNonCollectionValues.Checklist
modules/utilsmvnw clean installgreenextends PSXmlSerializationHelper/ anonymous subclassC3 evidence
modules/utilscd modules/utils && ..\..\mvnw.cmd clean install→ BUILD SUCCESS; Tests run: 387, Failures: 0, Errors: 0, Skipped: 9Class→Class<?>public static param; same erasure). Grep monorepoextends PSXmlSerializationHelperandnew PSXmlSerializationHelper→ no subclasses. Nofinal/sealed. Downstream standalone not required.C5 UI proof
N/A — no WebUI / Playwright surface.