Fixed Java9 or newer issues.

This commit is contained in:
2022-12-15 17:13:34 +01:00
parent 9df95c0fc3
commit 859d00da16
6 changed files with 172 additions and 7 deletions
@@ -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