Skip to content

Commit fe746a8

Browse files
committed
Fix
1 parent 8433712 commit fe746a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

server/src/main/java/org/elasticsearch/action/index/ModernSource.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,17 @@ public ESONFlat structuredSource() {
8989
}
9090
return structuredSource;
9191
}
92+
93+
@Override
94+
public boolean equals(Object o) {
95+
// TODO: Improve
96+
if (o == null || getClass() != o.getClass()) return false;
97+
return ((ModernSource) o).originalSourceBytes().equals(originalSourceBytes());
98+
}
99+
100+
@Override
101+
public int hashCode() {
102+
// TODO: Improve
103+
return originalSourceBytes().hashCode();
104+
}
92105
}

0 commit comments

Comments
 (0)