Merge pull request #333 from ShenJiahuan/dev

Typo fix
pull/342/head
John Niang 2019-10-12 19:14:21 +08:00 committed by GitHub
commit 73a7f97ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override @Override
public User getByUsernameOfNonNull(String username) { public User getByUsernameOfNonNull(String username) {
return getByUsername(username).orElseThrow(() -> new NotFoundException("The username dose not exist").setErrorData(username)); return getByUsername(username).orElseThrow(() -> new NotFoundException("The username does not exist").setErrorData(username));
} }
@Override @Override
@ -85,7 +85,7 @@ public class UserServiceImpl extends AbstractCrudService<User, Integer> implemen
@Override @Override
public User getByEmailOfNonNull(String email) { public User getByEmailOfNonNull(String email) {
return getByEmail(email).orElseThrow(() -> new NotFoundException("The email dose not exist").setErrorData(email)); return getByEmail(email).orElseThrow(() -> new NotFoundException("The email does not exist").setErrorData(email));
} }
@Override @Override