Skip to content

Commit

Permalink
fix the test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbericByte committed May 9, 2024
1 parent d511860 commit 953ec9b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

import java.util.List;
import java.util.Objects;

public class IndexingCategoryCapacityInfo
{
Expand Down Expand Up @@ -63,21 +63,19 @@ public boolean equals(Object o)
}

IndexingCategoryCapacityInfo that = (IndexingCategoryCapacityInfo) o;

if (!taskTypeList.equals(that.taskTypeList)) {
if (!Objects.equals(taskTypeList, that.taskTypeList)) {
return false;
}
if (capacity != that.capacity) {
return false;
}

return true;
}

@Override
public int hashCode()
{
return Objects.hashCode(taskTypeList, capacity);
return Objects.hash(taskTypeList, capacity);
}

@Override
Expand Down

0 comments on commit 953ec9b

Please sign in to comment.