Consolidate ArtifactDescriptorReaderDelegate into DefaultArtifactDescriptorReader#10938
Merged
gnodet merged 1 commit intoapache:masterfrom Aug 5, 2025
Conversation
a69e6d3 to
d045b7c
Compare
elharo
requested changes
Jul 18, 2025
c41f7b3 to
4e12e25
Compare
…riptorReader The ArtifactDescriptorReaderDelegate was marked as 'work in progress' and could be 'changed or removed without notice'. This change consolidates its functionality directly into DefaultArtifactDescriptorReader by: - Moving all delegate methods as private methods in DefaultArtifactDescriptorReader - Removing the unused extension mechanism via session config properties - Simplifying the codebase by removing unnecessary abstraction - Maintaining identical functionality for normal usage The compat module retains the original delegate pattern for backward compatibility since it's already deprecated and marked for removal in 4.0.0. If a proper extension point is needed in the future, it can be designed more explicitly with proper interfaces and documentation. Also fixes maven.config to be compatible with Maven 3.6.x by removing comment that causes parsing errors in older Maven versions.
4e12e25 to
87c86ae
Compare
Contributor
Author
|
@elharo another look ? |
elharo
approved these changes
Jul 24, 2025
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
This PR consolidates the
ArtifactDescriptorReaderDelegatefunctionality directly intoDefaultArtifactDescriptorReaderin the main implementation (impl/maven-impl), while preserving the original delegate pattern in the deprecated compat module for backward compatibility.Background
The
ArtifactDescriptorReaderDelegateclass was marked as "work in progress" and could be "changed or removed without notice" since version 3.2.4. The current implementation uses a delegate pattern with an unused extension mechanism through session config properties that appears to have no practical usage.Changes Made
Main Implementation (
impl/maven-impl)ArtifactDescriptorReaderDelegateas private methods inDefaultArtifactDescriptorReaderArtifactDescriptorReaderDelegate.javaCompat Module (unchanged)
Benefits
Backward Compatibility
This change maintains backward compatibility for normal usage:
DefaultArtifactDescriptorReaderremains unchangedFuture Extension Points
If a proper extension point is needed in the future, it can be designed more explicitly with:
This consolidation removes the work-in-progress delegate pattern and provides a cleaner foundation for any future extension needs.
Pull Request opened by Augment Code with guidance from the PR author