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 2022/11/11 20:02:09 UTC

[commons-vfs] branch master updated: 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-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new feba9f6d Use lambdas
feba9f6d is described below

commit feba9f6d93ce6626cd7a36d3832d294ca91d5baa
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 11 15:02:02 2022 -0500

    Use lambdas
---
 .../src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
index d4ae9f7c..7057f14c 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
@@ -255,7 +255,7 @@ public class NHttpFileServer {
 
         server = bootstrap.setIOReactorConfig(config).register("*", new HttpFileHandler(docRoot)).create();
 
-        Runtime.getRuntime().addShutdownHook(new Thread(() -> close()));
+        Runtime.getRuntime().addShutdownHook(new Thread(this::close));
 
         server.start();