We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ae51d commit 8433bb6Copy full SHA for 8433bb6
gitversion-gradle/src/main/groovy/net/minecraftforge/gitversion/gradle/GitVersionValueResult.java
@@ -5,6 +5,7 @@
5
package net.minecraftforge.gitversion.gradle;
6
7
import java.io.Serializable;
8
+import java.util.Objects;
9
10
@SuppressWarnings("ClassCanBeRecord") // Gradle hates records -- ctor needs to be public
11
final class GitVersionValueResult implements Serializable {
@@ -29,4 +30,15 @@ public String errorOutput() {
29
30
public Throwable execFailure() {
31
return this.execFailure;
32
}
33
+
34
+ @Override
35
+ public boolean equals(Object o) {
36
+ return o instanceof GitVersionValueResult that
37
+ && Objects.equals(this.output, that.output);
38
+ }
39
40
41
+ public int hashCode() {
42
+ return Objects.hashCode(output);
43
44
0 commit comments