File tree 1 file changed +3
-2
lines changed
core/src/test/java/org/elasticsearch/search/suggest 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 32
32
import org .elasticsearch .search .suggest .phrase .PhraseSuggestionBuilderTests ;
33
33
import org .elasticsearch .search .suggest .term .TermSuggestionBuilderTests ;
34
34
import org .elasticsearch .test .ESTestCase ;
35
+ import org .elasticsearch .test .EqualsHashCodeTestUtils ;
35
36
import org .junit .AfterClass ;
36
37
import org .junit .BeforeClass ;
37
38
38
39
import java .io .IOException ;
39
40
import java .util .Map .Entry ;
40
41
41
42
import static java .util .Collections .emptyList ;
42
- import static org .elasticsearch .test .EqualsHashCodeTestUtils .checkEqualsAndHashCode ;
43
43
44
44
public class SuggestBuilderTests extends ESTestCase {
45
45
@@ -87,7 +87,8 @@ public void testFromXContent() throws IOException {
87
87
*/
88
88
public void testEqualsAndHashcode () throws IOException {
89
89
for (int runs = 0 ; runs < NUMBER_OF_RUNS ; runs ++) {
90
- checkEqualsAndHashCode (randomSuggestBuilder (), original -> {
90
+ // explicit about type parameters, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=481649
91
+ EqualsHashCodeTestUtils .<SuggestBuilder >checkEqualsAndHashCode (randomSuggestBuilder (), original -> {
91
92
return copyWriteable (original , namedWriteableRegistry , SuggestBuilder ::new );
92
93
}, this ::createMutation );
93
94
}
You can’t perform that action at this time.
0 commit comments