You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/31 13:23:40 UTC

[commons-dbutils] 19/25: Use lambdas

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git

commit 54e9a139383a69bf07324444dca6f971a2a80bad
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 31 09:08:08 2023 -0400

    Use lambdas
---
 .../java/org/apache/commons/dbutils/ProxyFactoryTest.java     | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/test/java/org/apache/commons/dbutils/ProxyFactoryTest.java b/src/test/java/org/apache/commons/dbutils/ProxyFactoryTest.java
index bd8662d..5642687 100644
--- a/src/test/java/org/apache/commons/dbutils/ProxyFactoryTest.java
+++ b/src/test/java/org/apache/commons/dbutils/ProxyFactoryTest.java
@@ -17,7 +17,6 @@
 package org.apache.commons.dbutils;
 
 import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
 
 /**
  * ProxyFactoryTest performs simple type checking on proxy objects returned
@@ -25,15 +24,7 @@ import java.lang.reflect.Method;
  */
 public class ProxyFactoryTest extends BaseTestCase {
 
-    private static final InvocationHandler stub = new InvocationHandler() {
-
-        @Override
-        public Object invoke(final Object proxy, final Method method, final Object[] args)
-            throws Throwable {
-
-            return null;
-        }
-    };
+    private static final InvocationHandler stub = (proxy, method, args) -> null;
 
     public void testCreateCallableStatement() {
         assertNotNull(ProxyFactory.instance().createCallableStatement(stub));