This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 3875d6b  Trivial refactoring: Use safer parameter type with generics 
further
3875d6b is described below

commit 3875d6baedc42fd1d889c0ab0b2792506f1d649d
Author: Daniel Sun <[email protected]>
AuthorDate: Sat Mar 14 20:04:43 2020 +0800

    Trivial refactoring: Use safer parameter type with generics further
    
    As the generics will be erased, no binary compatibility issue was 
introduced here
---
 src/main/java/groovy/lang/GroovyShell.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/groovy/lang/GroovyShell.java 
b/src/main/java/groovy/lang/GroovyShell.java
index 0bce524..325b99d 100644
--- a/src/main/java/groovy/lang/GroovyShell.java
+++ b/src/main/java/groovy/lang/GroovyShell.java
@@ -387,8 +387,8 @@ public class GroovyShell extends GroovyObjectSupport {
      * @param fileName is the logical file name of the script (which is used 
to create the class name of the script)
      * @param list     the command line arguments to pass in
      */
-    public Object run(final Reader in, final String fileName, List list) 
throws CompilationFailedException {
-        return run(in, fileName, (String[]) list.toArray(EMPTY_STRING_ARRAY));
+    public Object run(final Reader in, final String fileName, List<String> 
list) throws CompilationFailedException {
+        return run(in, fileName, list.toArray(EMPTY_STRING_ARRAY));
     }
 
     /**

Reply via email to