File groovy-ambiguous-functions-calls.patch of Package groovy

--- groovy-2.4.21/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java	2022-03-23 17:53:51.742427275 +0100
+++ groovy-2.4.21/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java	2022-03-23 18:00:24.736785759 +0100
@@ -11061,7 +11061,7 @@
      */
     @SuppressWarnings("unchecked")
     public static <T> T[] plus(T[] left, T[] right) {
-        return (T[]) plus(toList(left), toList(right)).toArray();
+        return (T[]) plus((Collection<T>)toList(left), (Collection<T>)toList(right)).toArray();
     }
 
     /**
@@ -11097,7 +11097,7 @@
      */
     @SuppressWarnings("unchecked")
     public static <T> T[] plus(T[] left, Collection<T> right) {
-        return (T[]) plus(toList(left), right).toArray();
+        return (T[]) plus((Collection<T>)toList(left), right).toArray();
     }
 
     /**
@@ -11119,7 +11119,7 @@
      */
     @SuppressWarnings("unchecked")
     public static <T> T[] plus(T[] left, Iterable<T> right) {
-        return (T[]) plus(toList(left), toList(right)).toArray();
+        return (T[]) plus((Collection<T>)toList(left), toList(right)).toArray();
     }
 
     /**
openSUSE Build Service is sponsored by