Skip to content

Commit

Permalink
fix : sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 26, 2023
1 parent 81be465 commit 0c2a902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ void testWildcardSearch() {
StepVerifier.create(wildcardSearchMono)
.consumeNextWith(
searchPage -> {
assertThat(searchPage.getNumberOfElements()).isEqualTo(0);
assertThat(searchPage.getTotalPages()).isEqualTo(0);
assertThat(searchPage.getNumberOfElements()).isZero();
assertThat(searchPage.getTotalPages()).isZero();
assertThat(searchPage.isFirst()).isTrue();
assertThat(searchPage.isLast()).isTrue();
assertThat(searchPage.isEmpty()).isTrue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.example.demo.readreplica.repository.ArticleRepository;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -56,6 +55,6 @@ private List<Comment> convertToComment(List<CommentDTO> commentDTOs) {
comment.setComment(commentDTO.comment());
return comment;
})
.collect(Collectors.toList());
.toList();
}
}

0 comments on commit 0c2a902

Please sign in to comment.