removed all warnings

This commit is contained in:
2024-06-05 11:53:30 +02:00
parent 49254f3d87
commit ee65a2cf60
2 changed files with 82 additions and 83 deletions

View File

@@ -120,7 +120,6 @@ public class JodelPost {
@JsonIgnore
public boolean isComment() {
if (parent.isEmpty()) return false;
return !Objects.equals(id, parent.get());
return parent.filter(aLong -> !Objects.equals(id, aLong)).isPresent();
}
}