mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 13:32:30 +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);
|
filterTarget.addAll(retain);
|
||||||
return filterTarget;
|
return filterTarget;
|
||||||
}
|
}
|
||||||
catch (UnsupportedOperationException unsupportedOperationException) {
|
catch (UnsupportedOperationException readonly) {
|
||||||
this.logger.debug(LogMessage.format(
|
this.logger.trace(LogMessage.format(
|
||||||
"Collection threw exception: %s. Will return a new instance instead of mutating its state.",
|
"Collection threw exception: %s. Will return a new instance instead of mutating its state.",
|
||||||
unsupportedOperationException.getMessage()));
|
readonly.getMessage()));
|
||||||
return retain;
|
return retain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -204,10 +204,10 @@ public class DefaultMethodSecurityExpressionHandler extends AbstractSecurityExpr
|
|||||||
filterTarget.putAll(retain);
|
filterTarget.putAll(retain);
|
||||||
return filterTarget;
|
return filterTarget;
|
||||||
}
|
}
|
||||||
catch (UnsupportedOperationException unsupportedOperationException) {
|
catch (UnsupportedOperationException readonly) {
|
||||||
this.logger.debug(LogMessage.format(
|
this.logger.trace(LogMessage.format(
|
||||||
"Map threw exception: %s. Will return a new instance instead of mutating its state.",
|
"Map threw exception: %s. Will return a new instance instead of mutating its state.",
|
||||||
unsupportedOperationException.getMessage()));
|
readonly.getMessage()));
|
||||||
return retain;
|
return retain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user