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:
@@ -439,7 +439,8 @@ public abstract class AbstractListenerWriteProcessor<T> implements Processor<T,
|
||||
// ignore
|
||||
}
|
||||
@Override
|
||||
public <T> void onError(AbstractListenerWriteProcessor<T> processor, Throwable ignored) {
|
||||
public <T> void onError(AbstractListenerWriteProcessor<T> processor, Throwable ex) {
|
||||
// ignore
|
||||
}
|
||||
@Override
|
||||
public <T> void onComplete(AbstractListenerWriteProcessor<T> processor) {
|
||||
|
||||
@@ -116,7 +116,7 @@ public class FormContentFilter extends OncePerRequestFilter {
|
||||
MediaType mediaType = MediaType.parseMediaType(contentType);
|
||||
return MediaType.APPLICATION_FORM_URLENCODED.includes(mediaType);
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
catch (IllegalArgumentException ignored) {
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user