Skip to content

Commit

Permalink
Use generics properly in ToService
Browse files Browse the repository at this point in the history
  • Loading branch information
Migwel committed Dec 30, 2023
1 parent e254e8a commit d95b0c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public boolean isRelevant(Class<?> saveRequestType) {
}

@Override
public void save(Song song, ToRequest toRequest) {
public void save(Song song, ToDatabaseRequest toRequest) {
dev.migwel.sts.database.entities.Song entitySong = converter.convert(song);
try {
songRepository.save(entitySong);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/migwel/sts/domain/service/ToService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
public interface ToService<T extends ToRequest> {
boolean isRelevant(Class<?> saveRequestType);

void save(Song song, ToRequest toRequest);
void save(Song song, T toRequest);
}

0 comments on commit d95b0c7

Please sign in to comment.