Skip to content

Commit

Permalink
Feat: conflicts solved
Browse files Browse the repository at this point in the history
  • Loading branch information
kz44 committed Feb 1, 2024
1 parent c569fb3 commit 278e5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SportMapper {
* @param entity The Sport entity to be converted.
* @return SportDTO containing information from the Sport entity.
*/
public static SportDTO toDTO(Sport entity) {
public SportDTO toDTO(Sport entity) {
return SportDTO.builder()
.name(entity.getName())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.sportsmatch.dtos.SportDTO;
import com.sportsmatch.mappers.SportMapper;
import com.sportsmatch.repositories.SportRepository;
import com.sportsmatch.services.SportService;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
Expand All @@ -27,7 +26,7 @@ public class SportServiceImp implements SportService {
*/
public List<SportDTO> getAllSports(final Pageable pageable) {
return sportRepository.findAll(pageable).stream()
.map(SportMapper::toDTO)
.map(sportMapper::toDTO)
.collect(Collectors.toList());
}
}

0 comments on commit 278e5c9

Please sign in to comment.