Skip to content

Commit b91b3a5

Browse files
committed
jingle bells batman smells
1 parent 9b95a2a commit b91b3a5

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

inmemorycompiler/src/main/java/org/togetherjava/tjbot/imc/CompilationResult.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,4 @@ public record CompilationResult(boolean success, byte @NotNull [] bytes,
4242
@NotNull Iterable<CompileInfo> compileInfos) {
4343
return new CompilationResult(true, bytes, compileInfos);
4444
}
45-
46-
@Override
47-
public boolean equals(Object o) {
48-
if (this == o) {
49-
return true;
50-
}
51-
52-
if (!(o instanceof CompilationResult that) || success != that.success
53-
|| !Arrays.equals(bytes, that.bytes)) {
54-
return false;
55-
}
56-
57-
return compileInfos.equals(that.compileInfos);
58-
}
59-
60-
@Override
61-
public int hashCode() {
62-
int result = (success ? 1 : 0);
63-
64-
result = 31 * result + Arrays.hashCode(bytes);
65-
result = 31 * result + compileInfos.hashCode();
66-
67-
return result;
68-
}
69-
70-
@Override
71-
public String toString() {
72-
return "CompilationResult{" + "success=" + success + ", bytes=" + Arrays.toString(bytes)
73-
+ ", compileInfos=" + compileInfos + '}';
74-
}
7545
}

inmemorycompiler/src/main/java/org/togetherjava/tjbot/imc/CompileInfo.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,4 @@
1111
* @see javax.tools.Diagnostic
1212
*/
1313
public record CompileInfo(@NotNull Diagnostic<?> diagnostic) {
14-
@Override
15-
public boolean equals(Object o) {
16-
if (this == o)
17-
return true;
18-
if (!(o instanceof CompileInfo that))
19-
return false;
20-
return diagnostic.equals(that.diagnostic);
21-
}
22-
23-
@Override
24-
public int hashCode() {
25-
return Objects.hash(diagnostic);
26-
}
27-
28-
@Override
29-
public String toString() {
30-
return "CompileInfo{" + "diagnostic=" + diagnostic + '}';
31-
}
3214
}

0 commit comments

Comments
 (0)