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 6f131a6 commit 99aa04bCopy full SHA for 99aa04b
core/src/test/java/org/elasticsearch/search/sort/AbstractSortTestCase.java
@@ -237,7 +237,7 @@ protected static QueryBuilder randomNestedFilter() {
237
private T copy(T original) throws IOException {
238
/* The cast below is required to make Java 9 happy. Java 8 infers the T in copyWriterable to be the same as AbstractSortTestCase's
239
* T but Java 9 infers it to be SortBuilder. */
240
- return copyWriteable(original, namedWriteableRegistry,
+ return (T) copyWriteable(original, namedWriteableRegistry,
241
namedWriteableRegistry.getReader(SortBuilder.class, original.getWriteableName()));
242
}
243
0 commit comments