-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary equals() method override in projection DTO
- Loading branch information
1 parent
5bddbf9
commit 8809b11
Showing
1 changed file
with
1 addition
and
10 deletions.
There are no files selected for viewing
11 changes: 1 addition & 10 deletions
11
src/main/java/com/savvato/tribeapp/dto/projections/PhraseWithUserCountDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
package com.savvato.tribeapp.dto.projections; | ||
|
||
|
||
import java.util.Objects; | ||
|
||
public record PhraseWithUserCountDTO(Long id, Long adverbId, Long verbId, Long prepositionId, Long nounId, | ||
Long userCount) { | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
PhraseWithUserCountDTO phraseWithUserCountDTO = (PhraseWithUserCountDTO) o; | ||
return Objects.equals(id, phraseWithUserCountDTO.id) && Objects.equals(adverbId, phraseWithUserCountDTO.adverbId) && Objects.equals(verbId, phraseWithUserCountDTO.verbId) && Objects.equals(prepositionId, phraseWithUserCountDTO.prepositionId) && Objects.equals(nounId, phraseWithUserCountDTO.nounId); | ||
} | ||
} | ||
} |