MaxonT opened a new pull request, #1428:
URL: https://github.com/apache/maven-assembly-plugin/pull/1428

   Hello, this should address the report below, and I would welcome any changes 
you want.
   
   ### Description
   
   `PojoConfigSource`, the test double for `AssemblerConfigurationSource`, 
still carried a `localRepository` field and a `remoteRepository` list typed 
with the deprecated `org.apache.maven.artifact.repository.ArtifactRepository`, 
together with `getLocalRepository()`, `setLocalRepository()`, 
`getRemoteRepositories()` and `setRemoteRepository()`. None of the four 
accessors overrides anything: `AssemblerConfigurationSource` no longer declares 
them, and none of the tests that use `PojoConfigSource` 
(`DefaultAssemblyArchiverTest`, `ReaderFormatterTest`, 
`AssemblyExpressionEvaluatorTest`, `AssemblyInterpolatorTest`, 
`AssemblyRunner`) calls them. I grepped the text-complete checkout for every 
caller and for reflective access to the two fields by name and found none. This 
change deletes the two fields, the four accessors and the `ArtifactRepository` 
import, 21 lines in one test helper. Because nothing reads the removed members, 
there is no counterpart to swap in, and no behaviour changes. On
 ly `src/test` is touched, so no public API, config or output changes.
   
   This covers only the `ArtifactRepository` item under "Test code" in #1425. I 
left the other two items to the open PR #1339 ("Resolve module dependencies 
with Maven Resolver"), whose diff already removes the 
`getDependencyArtifacts()` call in `DefaultDependencyResolver` and the 
`setDependencyArtifacts()` calls in `DefaultDependencyResolverTest`.
   
   ### Validation
   
   `mvn -B clean verify` on this head: exit 0, 309 tests run, 0 failures, 0 
errors, 3 skipped. The same command on an unchanged copy of `master` gives the 
same result (exit 0, 309 run, 3 skipped), so the removal did not drop or add a 
test. The build ran with JDK 23.0.2 and Maven 3.9.9 on macOS, and the 
`spotless` run bound to the build left the diff as it is. I did not run the 
integration tests (`-Prun-its`), and I did not add a test, since this removes 
unused test code.
   
   Part of #1425. Part of apache/maven#14157.


-- 
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]

Reply via email to