desruisseaux commented on code in PR #2367: URL: https://github.com/apache/maven/pull/2367#discussion_r2100333828
########## compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java: ########## @@ -293,10 +293,9 @@ void testResolveNearestWithRanges() throws ArtifactResolutionException, InvalidV } @Test - @SuppressWarnings("checkstyle:UnusedLocalVariable") void testResolveRangeWithManagedVersion() throws ArtifactResolutionException, InvalidVersionSpecificationException { ArtifactSpec a = createArtifactSpec("a", "1.0"); - ArtifactSpec b = a.addDependency("b", "[1.0,3.0]"); Review Comment: Alternatively, we can just add `assertSomething(b)`. It may be `assertSame(a, b)` if the return value is for method call chaining (I didn't check if it is the case). -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org