mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Workaround Eclipse Oxygen type inference error (#26001)
This commit is contained in:
parent
a7e1610134
commit
b22147854b
@ -32,6 +32,7 @@ import org.elasticsearch.search.suggest.completion.CompletionSuggesterBuilderTes
|
||||
import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilderTests;
|
||||
import org.elasticsearch.search.suggest.term.TermSuggestionBuilderTests;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.test.EqualsHashCodeTestUtils;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
@ -87,7 +88,8 @@ public class SuggestBuilderTests extends ESTestCase {
|
||||
*/
|
||||
public void testEqualsAndHashcode() throws IOException {
|
||||
for (int runs = 0; runs < NUMBER_OF_RUNS; runs++) {
|
||||
checkEqualsAndHashCode(randomSuggestBuilder(), original -> {
|
||||
// explicit about type parameters, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=481649
|
||||
EqualsHashCodeTestUtils.<SuggestBuilder>checkEqualsAndHashCode(randomSuggestBuilder(), original -> {
|
||||
return copyWriteable(original, namedWriteableRegistry, SuggestBuilder::new);
|
||||
}, this::createMutation);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user