Skip to content

Commit

Permalink
#19 [feat] 전체 정적 팩토리메소드의 네이밍을 변경한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
juuuunny committed Oct 19, 2024
1 parent 9340389 commit 317ce34
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
Expand Up @@ -102,7 +102,7 @@ public <T extends Enum<T> & StadiumStatusType> SaveTopRankedZoneResponseDto save
zoneRepository.save(zone);
});

return SaveTopRankedZoneResponseDto.from(result.getId());
return SaveTopRankedZoneResponseDto.of(result.getId());
}

@Transactional(readOnly = true)
Expand All @@ -123,6 +123,6 @@ public GetZonesResponseDto getRecommendedZones(Long resultId, Long count) {
.limit(count)
.map(GetZonesResponseDto.ZoneResponseDto::from)
.toList();
return GetZonesResponseDto.from(zones);
return GetZonesResponseDto.of(zones);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static ZoneResponseDto from(Zone zone) {
}
}

public static GetZonesResponseDto from(List<ZoneResponseDto> zones) {
public static GetZonesResponseDto of(List<ZoneResponseDto> zones) {
return new GetZonesResponseDto(zones);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@Builder
public record SaveTopRankedZoneResponseDto(Long resultId) {
public static SaveTopRankedZoneResponseDto from(Long resultId) {
public static SaveTopRankedZoneResponseDto of(Long resultId) {
return new SaveTopRankedZoneResponseDto(resultId);
}
}

0 comments on commit 317ce34

Please sign in to comment.