Skip to content

Commit 55dcb51

Browse files
committed
Remove redundant catch of NoSuchMethodError
See gh-340
1 parent 48f0c4d commit 55dcb51

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/io/spring/gradle/dependencymanagement/internal/ExclusionConfiguringAction.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,8 @@ private Configuration copyConfiguration() {
122122
DependencySet allDependencies = this.configuration.getAllDependencies();
123123
Configuration configurationCopy = this.configurationContainer.newConfiguration(this.configurationConfigurer,
124124
allDependencies.toArray(new Dependency[allDependencies.size()]));
125-
try {
126-
DependencyConstraintSet constraints = this.configuration.getAllDependencyConstraints();
127-
configurationCopy.getDependencyConstraints().addAll(constraints);
128-
}
129-
catch (NoSuchMethodError ex) {
130-
// Continue
131-
}
125+
DependencyConstraintSet constraints = this.configuration.getAllDependencyConstraints();
126+
configurationCopy.getDependencyConstraints().addAll(constraints);
132127
return configurationCopy;
133128
}
134129

0 commit comments

Comments
 (0)