Skip to content

Commit

Permalink
fix lint java
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Oct 5, 2024
1 parent d3b7069 commit ad58958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class PostController {
@GetMapping
public Page<PostResponseDTO> getAllPosts(
@PageableDefault(page = 0, size = 10, sort = "updatedAt", direction = Sort.Direction.DESC)
Pageable pageable) {
final Pageable pageable) {
return postService.getAllPosts(pageable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PostService {
@Autowired private UserService userService;

@Transactional(readOnly = true)
public Page<PostResponseDTO> getAllPosts(Pageable pageable) {
public Page<PostResponseDTO> getAllPosts(final Pageable pageable) {
return postRepository.findAll(pageable).map(this::convertToDTO);
}

Expand Down

0 comments on commit ad58958

Please sign in to comment.