diff --git a/java-src/io/github/erdos/stencil/impl/NativeEvaluator.java b/java-src/io/github/erdos/stencil/impl/NativeEvaluator.java index aeaed682..8bab4318 100644 --- a/java-src/io/github/erdos/stencil/impl/NativeEvaluator.java +++ b/java-src/io/github/erdos/stencil/impl/NativeEvaluator.java @@ -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!"); @@ -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((Collection) argsList).toArray(); return functions.call(functionName.toString(), args); }