Skip to content

Commit

Permalink
[NAYB-157] refactor: 컨벤션에 따른 파라미터 final 키워드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 committed Sep 21, 2023
1 parent 7313071 commit a2bcb36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class AlreadyRegisteredDeliveryException extends DeliveryException {

public AlreadyRegisteredDeliveryException(String message) {
public AlreadyRegisteredDeliveryException(final String message) {
super(message);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class UnauthorizedOrderException extends OrderException {

public UnauthorizedOrderException(String message) {
public UnauthorizedOrderException(final String message) {
super(message);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public record FindPayedOrdersResponse(
long totalElements) {

public static FindPayedOrdersResponse of(
List<Order> orders,
int page,
long totalElements) {
final List<Order> orders,
final int page,
final long totalElements) {
List<FindPayedOrderResponse> content = orders.stream()
.map(FindPayedOrderResponse::from)
.toList();
Expand All @@ -23,7 +23,7 @@ public record FindPayedOrderResponse(
String name,
int price) {

public static FindPayedOrderResponse from(Order order) {
public static FindPayedOrderResponse from(final Order order) {
return new FindPayedOrderResponse(
order.getOrderId(),
order.getName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public record FindPayedOrdersCommand(Long userId, int page) {

public static FindPayedOrdersCommand of(Long userId, int page) {
public static FindPayedOrdersCommand of(final Long userId, final int page) {
return new FindPayedOrdersCommand(userId, page);
}
}

0 comments on commit a2bcb36

Please sign in to comment.