Skip to content

Commit

Permalink
simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Nov 15, 2023
1 parent 8ad96f1 commit cbbbf96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java-src/io/github/erdos/stencil/impl/NativeEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private final class FunctionCaller extends AFunction {
* @param argsList a Collection of arguments
*/
@Override
@SuppressWarnings("unchecked")
public Object invoke(Object functionName, Object argsList) {
if (!(functionName instanceof String)) {
throw new IllegalArgumentException("First argument must be a String!");
Expand All @@ -92,7 +91,7 @@ public Object invoke(Object functionName, Object argsList) {
throw new IllegalArgumentException("Second argument must be a collection!");
}

final Object[] args = new ArrayList((Collection) argsList).toArray();
final Object[] args = new ArrayList<Object>((Collection<?>) argsList).toArray();

return functions.call(functionName.toString(), args);
}
Expand Down

0 comments on commit cbbbf96

Please sign in to comment.