Configure CheckStyle rule for empty catch blocks
This commit configures a new CheckStyle rule that fails for empty "catch" blocks, unless the exception is named "ignored" or "expected". This also fixes the remaining instances missed by the previous commit. Closes gh-35047
This commit is contained in:
@@ -48,7 +48,7 @@ final class Target_Introspector {
|
||||
} while (!c.getName().equals("java.lang.Object"));
|
||||
}
|
||||
}
|
||||
catch (Exception exception) {
|
||||
catch (Exception ignored) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -73,8 +73,7 @@ class BridgeMethodResolver {
|
||||
} finally {
|
||||
is.close();
|
||||
}
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
} catch (IOException ignored) {}
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user