commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1786664 - /commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java
Date Mon, 13 Mar 2017 11:53:25 GMT
Author: sebb
Date: Mon Mar 13 11:53:25 2017
New Revision: 1786664

URL: http://svn.apache.org/viewvc?rev=1786664&view=rev
Log:
Use the same signature as the overridden method

Modified:
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java

Modified: commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java?rev=1786664&r1=1786663&r2=1786664&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java (original)
+++ commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/MethodTest.java Mon Mar
13 11:53:25 2017
@@ -513,7 +513,7 @@ public class MethodTest extends JexlTest
         final JexlArithmetic ja = JEXL.getArithmetic();
         JexlMethod mplus = new JexlMethod() {
             @Override
-            public Object invoke(Object obj, Object[] params) throws Exception {
+            public Object invoke(Object obj, Object ... params) throws Exception {
                 if (obj instanceof Map<?, ?>) {
                     return ja.add(params[0], params[1]);
                 } else {
@@ -522,7 +522,7 @@ public class MethodTest extends JexlTest
             }
 
             @Override
-            public Object tryInvoke(String name, Object obj, Object[] params) {
+            public Object tryInvoke(String name, Object obj, Object ... params) {
                 try {
                     if ("plus".equals(name)) {
                         return invoke(obj, params);



Mime
View raw message