OPENJPA-1700 FindBugs - Exception is caught when Exception is not thrown. This method uses a try-catch block that catches Exception objects, which could mask potential bugs.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-06-15 02:38:42 +00:00
parent 4d5d2fb2bf
commit 2230521c78
1 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
@ -101,10 +102,12 @@ public class Services {
return (String[]) resourceList.toArray(new String[resourceList
.size()]);
} catch (Exception e) {
} catch (PrivilegedActionException pae) {
// silently swallow all exceptions.
} catch (IOException ioe) {
// silently swallow all exceptions.
return new String[0];
}
return new String[0];
}
/**