From 5fb3d4b1538b56628ab70caf45e0addd474dd4a8 Mon Sep 17 00:00:00 2001 From: JunDonghyuk Date: Tue, 10 Oct 2023 13:39:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20@Override=20=EC=96=B4=EB=85=B8?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/techcourse/service/AppUserService.java | 3 +++ app/src/main/java/com/techcourse/service/TrxUserService.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/com/techcourse/service/AppUserService.java b/app/src/main/java/com/techcourse/service/AppUserService.java index 004e7b972e..1c4b54fe9e 100644 --- a/app/src/main/java/com/techcourse/service/AppUserService.java +++ b/app/src/main/java/com/techcourse/service/AppUserService.java @@ -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); diff --git a/app/src/main/java/com/techcourse/service/TrxUserService.java b/app/src/main/java/com/techcourse/service/TrxUserService.java index 1536dd5cf1..955dc8227b 100644 --- a/app/src/main/java/com/techcourse/service/TrxUserService.java +++ b/app/src/main/java/com/techcourse/service/TrxUserService.java @@ -18,6 +18,7 @@ public TrxUserService(UserService userService, DataSource dataSource) { this.dataSource = dataSource; } + @Override public User findById(final long id) { Connection connection = null; try { @@ -37,6 +38,7 @@ public User findById(final long id) { } } + @Override public void insert(final User user) { Connection connection = null; try { @@ -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 {