@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Category category = (Category) o; //noinspection SimplifiableIfStatement if (!name.equals(category.name)) { return false; } return parent != null ? parent.equals(category.parent) : category.parent == null; }
for (Issue issue : sorted) { Category category = issue.getCategory(); if (!category.equals(previousCategory)) { String name = category.getFullName(); System.out.println(name);
return false; if (!issue.getCategory().equals(warning.issue.getCategory())) { return false;