Skip to content

Commit

Permalink
[refac] change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 16, 2024
1 parent e4a7a70 commit 01d578f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.hankki.hankkiserver.api.favorite.service.response;

import static org.hankki.hankkiserver.api.favorite.service.response.util.FavoriteResponseUtil.getDetail;
import static org.hankki.hankkiserver.api.favorite.service.response.util.FavoriteResponseUtil.transformDetail;

import java.util.List;
import org.hankki.hankkiserver.domain.favorite.model.Favorite;
Expand All @@ -14,7 +14,7 @@ public record FavoriteGetResponse(
public static FavoriteGetResponse of(final Favorite favorite) {
return new FavoriteGetResponse(
favorite.getName(),
getDetail(favorite.getDetail()),
transformDetail(favorite.getDetail()),
favorite.getFavoriteStores().stream().map(favoriteStore -> FavoriteStoreResponse.of(favoriteStore.getStore())).toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static FavoriteWithStatusResponse of(Favorite favorite, boolean isReporte
favorite.getId(),
favorite.getName(),
favorite.getImageType(),
FavoriteResponseUtil.getDetail(favorite.getDetail()),
FavoriteResponseUtil.transformDetail(favorite.getDetail()),
isReported);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class FavoriteResponseUtil {

public static List<String> getDetail(String detail) {
public static List<String> transformDetail(String detail) {
List<String> details = new ArrayList<>();
if (!isDetailNull(detail)) {
details = Arrays.asList(detail.split(" "));
Expand Down

0 comments on commit 01d578f

Please sign in to comment.