Skip to content

Commit

Permalink
Remove redundant catch of NoSuchMethodError
Browse files Browse the repository at this point in the history
See gh-340
  • Loading branch information
wilkinsona committed Oct 3, 2022
1 parent 48f0c4d commit 55dcb51
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,8 @@ private Configuration copyConfiguration() {
DependencySet allDependencies = this.configuration.getAllDependencies();
Configuration configurationCopy = this.configurationContainer.newConfiguration(this.configurationConfigurer,
allDependencies.toArray(new Dependency[allDependencies.size()]));
try {
DependencyConstraintSet constraints = this.configuration.getAllDependencyConstraints();
configurationCopy.getDependencyConstraints().addAll(constraints);
}
catch (NoSuchMethodError ex) {
// Continue
}
DependencyConstraintSet constraints = this.configuration.getAllDependencyConstraints();
configurationCopy.getDependencyConstraints().addAll(constraints);
return configurationCopy;
}

Expand Down

0 comments on commit 55dcb51

Please sign in to comment.