This is an automated email from the ASF dual-hosted git repository. sunlan pushed a commit to branch GROOVY_3_0_X in repository https://gitbox.apache.org/repos/asf/groovy.git
commit de8f69b49aa5d334a9a81584054d64869a66b883 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 (cherry picked from commit 3875d6baedc42fd1d889c0ab0b2792506f1d649d) --- 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)); } /**
