mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
made a broad catch even broader and checkstyle corrections
Former-commit-id: 3bb21494d7658b8f65207b15e2663082dbd0354a
This commit is contained in:
@@ -137,7 +137,7 @@ public class NexusSearch {
|
||||
* Nexus. This is useful upstream for recovery, so we just re-throw it
|
||||
*/
|
||||
throw fnfe;
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
// Anything else is jacked-up XML stuff that we really can't recover
|
||||
// from well
|
||||
throw new IOException(e.getMessage(), e);
|
||||
@@ -151,7 +151,7 @@ public class NexusSearch {
|
||||
*/
|
||||
public boolean preflightRequest() {
|
||||
try {
|
||||
HttpURLConnection conn = URLConnectionFactory.createHttpURLConnection(new URL(rootURL, "status"));
|
||||
final HttpURLConnection conn = URLConnectionFactory.createHttpURLConnection(new URL(rootURL, "status"));
|
||||
conn.addRequestProperty("Accept", "application/xml");
|
||||
conn.connect();
|
||||
if (conn.getResponseCode() != 200) {
|
||||
@@ -164,7 +164,7 @@ public class NexusSearch {
|
||||
LOGGER.warning("Expected root node name of status, got " + doc.getDocumentElement().getNodeName());
|
||||
return false;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user