Skip to content

Commit e1089b9

Browse files
committed
fix: 2개 이상의 인수를 갖는 static 메서드 from -> of 로 변경
1 parent 677cb07 commit e1089b9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/org/baas/baascore/dto/response/AccountInitResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class AccountInitResponse {
2323
private LocalDate createdAt;
2424
private LocalDate updatedAt;
2525

26-
public static AccountInitResponse from(Account account, int index) {
26+
public static AccountInitResponse of(Account account, int index) {
2727
return AccountInitResponse.builder()
2828
.index(index)
2929
.customerName(account.getCustomer().getName())

src/main/java/org/baas/baascore/service/AccountService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.Random;
2222
import java.util.UUID;
2323
import java.util.concurrent.atomic.AtomicInteger;
24-
import java.util.stream.Collectors;
2524
import java.util.stream.IntStream;
2625

2726
@Service
@@ -192,7 +191,7 @@ public AccountsInfoResponse findAccountInfo(MemberInitRequest memberInitRequest)
192191

193192
AtomicInteger index = new AtomicInteger(1);
194193
List<AccountInitResponse> accountInfoList = accountRepository.findByCustomerId(customer.getId()).stream()
195-
.map(account -> AccountInitResponse.from(account, index.getAndIncrement()))
194+
.map(account -> AccountInitResponse.of(account, index.getAndIncrement()))
196195
.toList();
197196

198197
return new AccountsInfoResponse(accountInfoList.size(), accountInfoList);

0 commit comments

Comments
 (0)