mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 13:02:13 +00:00
Polish Exception Handling
Issue gh-15093
This commit is contained in:
parent
63f48167bd
commit
aa9bf83c6d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user