diff --git a/core/src/main/java/org/springframework/security/access/expression/method/DefaultMethodSecurityExpressionHandler.java b/core/src/main/java/org/springframework/security/access/expression/method/DefaultMethodSecurityExpressionHandler.java index 8d9175bf5b..2460bb6056 100644 --- a/core/src/main/java/org/springframework/security/access/expression/method/DefaultMethodSecurityExpressionHandler.java +++ b/core/src/main/java/org/springframework/security/access/expression/method/DefaultMethodSecurityExpressionHandler.java @@ -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; } }