Refactoing: Rename Method
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b0d3808fcb
commit
ba6a889d35
|
@ -64,7 +64,7 @@ public class LinkUseCase {
|
|||
}
|
||||
|
||||
public List<LinkDto> groupByHosts() {
|
||||
return linkRepository.groupByHost().stream().map(this::convertLink).collect(Collectors.toList());
|
||||
return linkRepository.groupByHosts().stream().map(this::convertLink).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private LinkDto convertLink(Link link) {
|
||||
|
|
|
@ -78,7 +78,7 @@ public class LinkRepository {
|
|||
return links.stream().filter(link -> link.wasCreatedBy(username)).collect(Collectors.toSet());
|
||||
}
|
||||
|
||||
public List<Link> groupByHost() {
|
||||
public List<Link> groupByHosts() {
|
||||
var input = new ArrayList<>(links.stream().toList());
|
||||
var result = new ArrayList<Link>();
|
||||
|
||||
|
|
Reference in a new issue