Fix CatchingUnchecked Error Prone violations (#5950)

Co-authored-by: James Nord <jtnord@users.noreply.github.com>
This commit is contained in:
Basil CrowandJames Nord authored and GitHub committed 2021-12-10 09:51:30 -08:00
1 parent cce020fdf3
commit 2ea1148286
31 files changed
+43 -53

No files matched your search

+2 -2
View File
@@ -460,7 +460,7 @@ public class Util {
try {
ResourceBundle rb = ResourceBundle.getBundle("/hudson/win32errors");
return rb.getString("error"+m.group(1));
} catch (Exception ignored) {
} catch (RuntimeException ignored) {
// silently recover from resource related failures
}
}
@@ -1429,7 +1429,7 @@ public class Util {
return null;
} catch (IOException x) {
throw x;
} catch (Exception x) {
} catch (RuntimeException x) {
throw new IOException(x);
}
}