Commit 9817a20d authored by Ondřej Hrdlička's avatar Ondřej Hrdlička
Browse files

Fixed equals

parent 7a6db860
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ public class Category implements IdentifiableEntity {
            return false;
        }
        Category category = (Category) o;
        return Objects.equals(id, category.id);
        return this.id != null && this.id.equals(category.id);
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class CategoryTime {
            return false;
        }
        CategoryTime that = (CategoryTime) o;
        return Objects.equals(id, that.id);
        return this.id != null && this.id.equals(that.id);
    }

    public void setHoursSpent(Long hoursSpent) {
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public class SubTask implements Completable, IdentifiableEntity {
            return false;
        }
        SubTask subTask = (SubTask) o;
        return Objects.equals(id, subTask.id);
        return this.id != null && this.id.equals(subTask.id);
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public class Task implements Completable, IdentifiableEntity {
            return false;
        }
        Task task = (Task) o;
        return Objects.equals(id, task.id);
        return this.id != null && this.id.equals(task.id);
    }

    @Override