james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matth...@apache.org
Subject svn commit: r1726765 - /james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java
Date Tue, 26 Jan 2016 10:39:27 GMT
Author: matthieu
Date: Tue Jan 26 10:39:27 2016
New Revision: 1726765

URL: http://svn.apache.org/viewvc?rev=1726765&view=rev
Log:
JAMES-1669 anonymous class can be converted to lambda

Modified:
    james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java

Modified: james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java
URL: http://svn.apache.org/viewvc/james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java?rev=1726765&r1=1726764&r2=1726765&view=diff
==============================================================================
--- james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java
(original)
+++ james/project/trunk/mpt/impl/imap-mailbox/cyrus/src/test/java/org/apache/james/mpt/imapmailbox/cyrus/host/CyrusHostSystem.java
Tue Jan 26 10:39:27 2016
@@ -74,13 +74,7 @@ public class CyrusHostSystem extends Ext
     
     public void beforeTest() throws Exception {
         container = docker.start();
-        addressSupplier = new Supplier<InetSocketAddress>() {
-            
-            @Override
-            public InetSocketAddress get() {
-                return new InetSocketAddress(docker.getHost(container), docker.getIMAPPort(container));
-            }
-        };
+        addressSupplier = () -> new InetSocketAddress(docker.getHost(container), docker.getIMAPPort(container));
     }
 
     public void afterTest() throws Exception {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message