Skip to content

Commit

Permalink
refactor: @OverRide 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jundonghyuk committed Oct 10, 2023
1 parent 5c535f5 commit 5fb3d4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/techcourse/service/AppUserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ public AppUserService(final UserDao userDao,
this.userHistoryDao = userHistoryDao;
}

@Override
public User findById(final long id) {
return userDao.findById(id);
}

@Override
public void insert(final User user) {
userDao.insert(user);
}

@Override
public void changePassword(final long id, final String newPassword, final String createBy) {
final var user = findById(id);
user.changePassword(newPassword);
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/techcourse/service/TrxUserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public TrxUserService(UserService userService, DataSource dataSource) {
this.dataSource = dataSource;
}

@Override
public User findById(final long id) {
Connection connection = null;
try {
Expand All @@ -37,6 +38,7 @@ public User findById(final long id) {
}
}

@Override
public void insert(final User user) {
Connection connection = null;
try {
Expand All @@ -55,6 +57,7 @@ public void insert(final User user) {
}
}

@Override
public void changePassword(final long id, final String newPassword, final String createBy) {
Connection connection = null;
try {
Expand Down

0 comments on commit 5fb3d4b

Please sign in to comment.