Skip to content

Commit

Permalink
fix : final 누락 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-1116 committed May 6, 2024
1 parent 9d4a8ac commit b0c8499
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public ResponseEntity<ApiSpec<GroupDetailResponse>> findGroupDetailById(
@AuthenticationPrincipal final Long memberId,
@PathVariable("group_id") final Long groupId
) {
GroupDetailDto groupDetailDto = groupService.findGroupDetailByGroupId(memberId, groupId);
final GroupDetailDto groupDetailDto = groupService.findGroupDetailByGroupId(memberId, groupId);

return ResponseEntity.ok(
ApiSpec.success(
Expand All @@ -103,7 +103,7 @@ public ResponseEntity<ApiSpec<GroupsSliceResponse>> findGroups(
@RequestParam(defaultValue = "20", value = "size") final int size,
@RequestParam(value = "created_at") final ZonedDateTime createdAt
) {
Slice<GroupSummaryDto> groupsSlice = groupService.findGroupsSlice(memberId, size,
final Slice<GroupSummaryDto> groupsSlice = groupService.findGroupsSlice(memberId, size,
createdAt);

return ResponseEntity.ok(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Slice<GroupSummaryDto> findGroupsSlice(
final int size,
final ZonedDateTime createdAt
) {
List<GroupSummaryDto> groups = jpaQueryFactory
final List<GroupSummaryDto> groups = jpaQueryFactory
.select(
Projections.constructor(
GroupSummaryDto.class,
Expand All @@ -49,7 +49,7 @@ public Slice<GroupSummaryDto> findGroupsSlice(
.limit(size + 1)
.fetch();

boolean hasNext = groups.size() > size;
final boolean hasNext = groups.size() > size;
if (hasNext) {
groups.remove(size);
}
Expand Down

0 comments on commit b0c8499

Please sign in to comment.