Skip to content

Commit

Permalink
Fix hash code & equals
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Nov 10, 2023
1 parent b4d46b7 commit 9d83b02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ public BuildConfig build() {

@Override
public String toString() {
return "BuildConfig [runnerOs=" + runnerOs + "]";
return "BuildConfig [runnerOs=" + runnerOs + ", freeDiskSpace=" + freeDiskSpace + "]";
}

@Override
public int hashCode() {
return Objects.hash(runnerOs);
return Objects.hash(runnerOs, freeDiskSpace);
}

@Override
Expand All @@ -102,6 +102,6 @@ public boolean equals(final Object obj) {
return false;
}
final BuildConfig other = (BuildConfig) obj;
return Objects.equals(runnerOs, other.runnerOs);
return Objects.equals(runnerOs, other.runnerOs) && freeDiskSpace == other.freeDiskSpace;
}
}

0 comments on commit 9d83b02

Please sign in to comment.