gnodet opened a new pull request, #14144: URL: https://github.com/apache/maven/pull/14144
Backport of #14068 to `maven-4.0.x`. Extend the noun-style accessor pattern — established in `Repository.java` since 4.0.0 — to the remaining hand-written `@Immutable` API interfaces in `maven-api-core` and `maven-api-cli`. For each old `getXxx()`/`isXxx()` abstract method: - Add a new abstract noun-style method (`xxx()`) - Convert the old method to a `@Deprecated(since = "4.0.0", forRemoval = true)` default delegating to it Interfaces updated: `Request`, `Result`, `BuilderProblem`, `Artifact` (snapshot), `Dependency` (optional), `Type`, `Packaging`, `RepositoryAwareRequest`, `SettingsBuilderRequest`, `ProjectBuilderRequest`, `ModelBuilderRequest`, `ArtifactCoordinatesFactoryRequest`, `ArtifactFactoryRequest`, `ArtifactDeployerRequest`, `ArtifactInstallerRequest`, `ArtifactResolverRequest`, `DependencyCoordinatesFactoryRequest`, `DependencyResolverRequest`, `XmlReaderRequest`, and `CIInfo`. All in-tree implementations updated to override the new noun-style methods. Deprecated defaults ensure binary compatibility for external consumers. Cherry-picked from c2cf6c36fe6150a46c7f3b6241e356a46b8ed3e0 with adaptations for 4.0.x (resolved structural conflicts in `Event.java`, `MojoExecution.java`, `DefaultType` ×2, `DefaultModelBuilder`, `DefaultTransportProvider`, and updated all implementation classes). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
