mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
Fix CatchingUnchecked Error Prone violations (#5950)
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
This commit is contained in:
1 parent
cce020fdf3
commit
2ea1148286
31 files changed
+43
-53
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user