Browse Source

Catching Throwable while calling new on a no statement constructor (all fields / base classes only have no statement constructors as well) seems overdone. Removing catch clause.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278330 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
41bb1f619a
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      src/main/org/apache/tools/ant/ProjectHelper.java

+ 1
- 9
src/main/org/apache/tools/ant/ProjectHelper.java View File

@@ -219,15 +219,7 @@ public class ProjectHelper {
if (helper != null) {
return helper;
} else {
try {
// Default
// return new ProjectHelperImpl();
return new ProjectHelper2();
} catch (Throwable e) {
String message = "Unable to load default ProjectHelper due to "
+ e.getClass().getName() + ": " + e.getMessage();
throw new BuildException(message, e);
}
return new ProjectHelper2();
}
}



Loading…
Cancel
Save