Polish Exception Handling

Issue gh-15093
This commit is contained in:
Josh Cummings 2024-05-31 12:34:33 -06:00
parent 63f48167bd
commit aa9bf83c6d
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 6 additions and 6 deletions

View File

@ -158,10 +158,10 @@ public class DefaultMethodSecurityExpressionHandler extends AbstractSecurityExpr
filterTarget.addAll(retain);
return filterTarget;
}
catch (UnsupportedOperationException unsupportedOperationException) {
this.logger.debug(LogMessage.format(
catch (UnsupportedOperationException readonly) {
this.logger.trace(LogMessage.format(
"Collection threw exception: %s. Will return a new instance instead of mutating its state.",
unsupportedOperationException.getMessage()));
readonly.getMessage()));
return retain;
}
}
@ -204,10 +204,10 @@ public class DefaultMethodSecurityExpressionHandler extends AbstractSecurityExpr
filterTarget.putAll(retain);
return filterTarget;
}
catch (UnsupportedOperationException unsupportedOperationException) {
this.logger.debug(LogMessage.format(
catch (UnsupportedOperationException readonly) {
this.logger.trace(LogMessage.format(
"Map threw exception: %s. Will return a new instance instead of mutating its state.",
unsupportedOperationException.getMessage()));
readonly.getMessage()));
return retain;
}
}