diff --git a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Account.java b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Account.java index e19ab3a..2946951 100644 --- a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Account.java +++ b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Account.java @@ -5,8 +5,6 @@ import java.util.HashSet; import java.util.Optional; import java.util.Set; -import javax.annotation.Nonnull; - import lombok.Getter; import lombok.Setter; import lombok.ToString; @@ -115,7 +113,7 @@ public class Account extends AggregateRoot implements IWithVersion { addDomainEvent(new AccountRolesBound(this)); } - public boolean checkPassword(@Nonnull String password) { + public boolean checkPassword(String password) { return this.password.check(password); }