Fixed Java9 or newer issues.

This commit is contained in:
Speiger committed 2022-12-15 17:13:34 +01:00
1 parent 9df95c0fc3
commit 859d00da16
6 files changed
+172 -7

No files matched your search

@@ -188,7 +188,7 @@ public interface PRIORITY_QUEUE KEY_GENERIC_TYPE extends ITERABLE KEY_GENERIC_TY
* @return an array containing all of the elements in this collection
* @see Collection#toArray(Object[])
*/
default KEY_TYPE[] TO_ARRAY(IntFunction<KEY_TYPE[]> action) {
default <E> E[] TO_ARRAY(IntFunction<E[]> action) {
return TO_ARRAY(action.apply(size()));
}
#endif