Polish: combine catches block with same body
This commit is contained in:
committed by
Juergen Hoeller
parent
f835f7b500
commit
7bce04c06c
@@ -74,10 +74,7 @@ abstract class AbstractMediaTypeExpression implements Comparable<AbstractMediaTy
|
||||
boolean match = matchMediaType(exchange);
|
||||
return (!this.isNegated == match);
|
||||
}
|
||||
catch (NotAcceptableStatusException ex) {
|
||||
return false;
|
||||
}
|
||||
catch (UnsupportedMediaTypeStatusException ex) {
|
||||
catch (NotAcceptableStatusException | UnsupportedMediaTypeStatusException ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user