Skip to content

Commit

Permalink
Small naming changes after previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Migwel committed Dec 29, 2023
1 parent 27c219f commit e254e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public <T extends FromRequest> FromService<T> getFromService(T fromRequest) {
return (FromService<T>) fromService;
}
}
throw new IllegalArgumentException("No search service available for this search request");
throw new IllegalArgumentException("No From service available for this search request");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public ToServiceFactory(List<ToService<?>> toServices) {
this.toServices = List.copyOf(toServices);
}

public <T extends ToRequest> ToService<T> getSaveService(T saveRequest) {
public <T extends ToRequest> ToService<T> getToService(T saveRequest) {
for (ToService<?> toService : toServices) {
if (toService.isRelevant(saveRequest.getClass())) {
return (ToService<T>) toService;
}
}
throw new IllegalArgumentException("No search service available for this search request");
throw new IllegalArgumentException("No To service available for this search request");
}
}

0 comments on commit e254e8a

Please sign in to comment.