elharo commented on code in PR #2011:
URL: https://github.com/apache/maven-resolver/pull/2011#discussion_r3641834594


##########
maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/DefaultArtifactResolverTest.java:
##########
@@ -737,7 +737,7 @@ public LocalArtifactResult find(RepositorySystemSession 
session, LocalArtifactRe
                 try {
                     result.setFile(TestFileUtils.createTempFile(""));
                 } catch (IOException e) {
-                    e.printStackTrace();
+                    throw new RuntimeException(e);

Review Comment:
   no catch is needed here and below. Just let the IOException bubble up and 
fail the test so you don't have to wrap the exception.



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