removed all warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user