Repository navigation
fix: Profile schema codeSegments - collapse 4.1.0/4.1.99 + 4.2.0+ into 4.1.0+ - #14075
Merged
Merged
Conversation
…redundant 4.2.0+ block getSource/setSource were removed from the 4.1.0 schema (backport apache#14069), so the 4.1.0/4.1.99 block re-introducing them on master is wrong. Collapse to 4.1.0+ with the clean toString; the 4.2.0+ block is redundant.
gnodet-bot
approved these changes
Nov 19, 2026
gnodet-bot
left a comment
Contributor
There was a problem hiding this comment.
LGTM. The fix is correct and surgical.
The 4.1.0/4.1.99 codeSegment was erroneously re-introducing SOURCE_POM, SOURCE_SETTINGS, source, getSource(), and setSource() for the 4.1.0–4.1.99 range — fields that were removed from the 4.1.0 schema. Collapsing it into a single 4.1.0+ block with just the clean toString() aligns master with what #14069 fixes on maven-4.0.x. The 4.0.0/4.0.99 block is untouched (correct — Maven 3 compat). No Java code changed; this is a pure schema/codegen template correction with no behaviour impact on end users.
No issues found.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
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.
Follow-up to #12377 and backport #14069.
The original PR #12377 split the Profile
codeSegmentsinto:4.0.0/4.0.99: keepsgetSource/setSource(correct)4.1.0/4.1.99: re-introducesgetSource/setSource(wrong — these were removed from the 4.1.0 schema)4.2.0+: cleantoStringonlySince the 4.1.0 schema does not have
getSource/setSource, the4.1.0/4.1.99block was incorrectly re-introducing them. This is the same fix applied to the backport (#14069): collapse into a single4.1.0+block with just the cleantoString, removing the now-redundant4.2.0+block.