mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-06 18:52:13 +00:00
Polish DefaultHttpSecurityExpressionHandler
Issue gh-11105
This commit is contained in:
parent
4ddec07d0e
commit
f16d47c7b5
@ -90,7 +90,7 @@ public class DefaultHttpSecurityExpressionHandler extends AbstractSecurityExpres
|
|||||||
* "ROLE_".
|
* "ROLE_".
|
||||||
*/
|
*/
|
||||||
public void setDefaultRolePrefix(String defaultRolePrefix) {
|
public void setDefaultRolePrefix(String defaultRolePrefix) {
|
||||||
Assert.hasText(defaultRolePrefix, "defaultRolePrefix cannot be empty");
|
Assert.notNull(defaultRolePrefix, "defaultRolePrefix cannot be null");
|
||||||
this.defaultRolePrefix = defaultRolePrefix;
|
this.defaultRolePrefix = defaultRolePrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user