Repository navigation
fix(deployer): Xlint batch 1 — real generics + easy wins (#2028) - #2418
Merged
Merged
Conversation
Partial clear of perc-deployer javac Xlint diagnostics (parent #2200): - PSDependency: Comparable<PSDependency>, typed Set/List/Iterator helpers - PSArchiveSummary/ExportDescriptor/ArchiveDetail/IdMap package+iterator types - PSDeploymentHandler request roots, IdTypes, reflection, parent map generics - PSLogHandler redundant cast removal; valueOf for Long/Boolean for-removal - Catalog: static PSXmlTreeWalker.getElementData; drop redundant casts Tests: PSDependencyTest.compareTo, PSArchiveSummaryTest.getPackageType; PSArchiveTest package iterator typing. Standalone: cd deployer && ../mvnw clean install (176 tests, 0 failures). Partial for #2028 Refs #2200 > Co-Authored by Grok Build using grok-4.5 with agent main.
This was referenced Aug 8, 2026
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Overview
Files Reviewed (2 files)
Previous Review Summary (commit 4aba1bc)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4aba1bc)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (13 files)
Reviewed by step-3.7-flash · Input: 101.9K · Output: 10.6K · Cached: 294.3K Review guidance: REVIEW.md from base branch |
…2028) - Align null-arg IllegalArgumentException message with param name `dep` - Extend unit tests for cross-subclass compareTo + TreeSet ordering - Confirms no PSDependency subclass overrides compareTo(Object) > Co-Authored by Grok 1.0.0 (3cd0d0cbce) using grok-4-1-thinking-maximum-thinking-effort with agent overnight-pr-followup.
Collaborator
Author
|
Overnight follow-up: addressed 2 Kilo review threads on
|
natechadwick
approved these changes
Aug 8, 2026
4 tasks done
natechadwick
pushed a commit
that referenced
this pull request
Aug 10, 2026
…import (#2417) (#2698) Continue perc-deployer main-source Xlint cleanup after batch 1 (#2418 / #2028). Prefer real generics over suppressions on preferred objectstore/server paths: - PSApplicationIDTypes: parameterize maps/lists/iterators and choice filters - PSDeployableObject: List/Iterator of String required classes; fix fromXml RequiredClasses restore; static PSXmlTreeWalker.getElementData - PSDbmsHelper: PSEntrySet and Iterator typing; schema/enumeration generics - PSImportCtx: Set of String for installed package deps - PSDataObjectDependencyHandler call-site cleanup Tests: choice filters/copyFrom, required classes, filter-in, import-ctx tracking. Module clean install green (183 tests). Partial for #2417 Refs #2028 #2200 > Co-Authored by Grok Build using grok-4.5 with agent main.
This was referenced Aug 10, 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
Partial Xlint cleanup for perc-deployer (issue #2028, parent tracker #2200). First PR-sized batch prefers real generics and mechanical easy wins over blanket suppressions.
Main changes
Comparable<PSDependency>, typedsetDependencies/ tree helpers (List/Iterator/TreeSetdiamond), remove raw casts in walkersCollection<String>/Iterator<String>, IdTypes iterators, parent type map, reflectionClass/Constructortyping,Long.valueOf/Boolean.valueOffor-removalIterator<? extends PSDependency>for package rowsPSXmlTreeWalker.getElementDataqualification; drop redundantString/IntegercastsTests
PSDependencyTest.testCompareToOrdersByDisplayIdentifierPSArchiveSummaryTest.testGetPackageTypePSArchiveTestpackage iterator typing forIterator<PSDeployableElement>Residual
Remaining diagnostics tracked in #2417 (full module still has many warnings under uncapped
-Xmaxwarns; default Maven reports cap at 100 per compile/testCompile phase).Test plan
cd deployer && ../mvnw.cmd clean install— BUILD SUCCESSGates
Partial for #2028
Refs #2200
Residual: #2417