You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Devin Review verdict: local verification passed; no automated CI checks are configured on this fork.
Flagged for human review: existing new Runnable() instance left unchanged; this PR intentionally limits OGC modernization to low-risk cast-site pattern matching.
Why Should This Be In Core?
The OGC parsers are a large part of the core SDK data model. This update modernizes safe cast paths for Java 21 while avoiding public API changes or parser behavior changes.
Benefits
Reduces cast boilerplate in OGC parsing code.
Keeps changes atomic to gov.nasa.worldwind.ogc.
Preserves the existing JDK 21 full-build test profile.
Potential Drawbacks
No functional behavior changes are intended.
Broader parser refactors were intentionally avoided to minimize migration risk.
Migrate COG-GTM/WorldWindJava from Java 11 to Java 21 LTS. This is a federal-grade, zero-breakage migration with atomic per-package PRs, full test verification before and after, and a rollup audit document. Use parallel child sessions to accelerate. All PRs target the fork's develop branch.
#``# PHASE 0: Pre-Migration Baseline (Sequential — MUST complete before anything else)
#``#``# Step 0.1: Capture Pre-Migration Baseline Metrics
Before ANY changes, on the develop branch with JDK 11:
The reason will be displayed to describe this comment to others. Learn more.
✅ Devin Review: No Issues Found
Devin Review analyzed this PR and found no bugs or issues to report.
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
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.
Description of the Change
Applies conservative Java 21 pattern matching for
instanceofin thegov.nasa.worldwind.ogcpackage.Changed files:
src/gov/nasa/worldwind/ogc/OGCDCType.javasrc/gov/nasa/worldwind/ogc/OGCRequestDescription.javasrc/gov/nasa/worldwind/ogc/collada/ColladaAbstractObject.javasrc/gov/nasa/worldwind/ogc/kml/KMLAbstractObject.javasrc/gov/nasa/worldwind/ogc/kml/KMLStyleUrl.javasrc/gov/nasa/worldwind/ogc/wms/WMSLayerCapabilities.javasrc/gov/nasa/worldwind/ogc/wms/WMSLayerStyle.javaBefore/after counts for this package scope:
new Runnable(): 1 → 1new ActionListener(): 0 → 0new Callable(): 0 → 0new MouseListener(): 0 → 0new KeyListener(): 0 → 0new ChangeListener(): 0 → 0new PropertyChangeListener(): 0 → 0new WindowListener(): 0 → 0instanceoflocations: 147 → 147 (15 cast sites modernized)Verification:
ant -f release-build.xmlunder JDK 21: BUILD SUCCESSFULDevin session: https://app.devin.ai/sessions/36287b7c637242dba0a6a659737d5402
Devin Review verdict: local verification passed; no automated CI checks are configured on this fork.
Flagged for human review: existing
new Runnable()instance left unchanged; this PR intentionally limits OGC modernization to low-risk cast-site pattern matching.Why Should This Be In Core?
The OGC parsers are a large part of the core SDK data model. This update modernizes safe cast paths for Java 21 while avoiding public API changes or parser behavior changes.
Benefits
gov.nasa.worldwind.ogc.Potential Drawbacks
Applicable Issues
N/A
Requested by: @jakexcosme
Devin Review