Collapse catch clauses
Use multi-catch for exceptions whenever possible. See gh-9781
This commit is contained in:
committed by
Phillip Webb
parent
4a189bdee7
commit
798fe5ed53
@@ -131,10 +131,7 @@ public class AetherGrapeEngine implements GrapeEngine {
|
||||
classLoader.addURL(file.toURI().toURL());
|
||||
}
|
||||
}
|
||||
catch (ArtifactResolutionException ex) {
|
||||
throw new DependencyResolutionFailedException(ex);
|
||||
}
|
||||
catch (MalformedURLException ex) {
|
||||
catch (ArtifactResolutionException | MalformedURLException ex) {
|
||||
throw new DependencyResolutionFailedException(ex);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user