Skip to content

Commit

Permalink
Delete extra method for class
Browse files Browse the repository at this point in the history
  • Loading branch information
niyatanya committed Sep 21, 2024
1 parent f1b723c commit 2465954
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/hexlet/code/mapper/TaskMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.mapstruct.NullValuePropertyMappingStrategy;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.Mapping;
import org.openapitools.jackson.nullable.JsonNullable;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashSet;
Expand Down Expand Up @@ -67,10 +66,6 @@ protected Set<Label> labelsFromLabelIds(Set<Long> taskLabelIds) {
return new HashSet<Label>();
}

protected Set<Label> labelsFromJsonNullableLabelIds(JsonNullable<Set<Long>> taskLabelIds) {
return new HashSet<>(labelRepository.findAllById(taskLabelIds.get()));
}

protected Set<Long> taskLabelIdsFromLabels(Set<Label> labels) {
return new HashSet<>(labels.stream()
.map(Label::getId)
Expand Down

0 comments on commit 2465954

Please sign in to comment.