Polish DefaultHttpSecurityExpressionHandler

Issue gh-11105
This commit is contained in:
Josh Cummings 2022-10-05 15:57:02 -06:00
parent 4ddec07d0e
commit f16d47c7b5
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }