felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1736038 - /felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
Date Mon, 21 Mar 2016 16:57:47 GMT
Author: gnodet
Date: Mon Mar 21 16:57:47 2016
New Revision: 1736038

URL: http://svn.apache.org/viewvc?rev=1736038&view=rev
Log:
Use lambda

Modified:
    felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java

Modified: felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java?rev=1736038&r1=1736037&r2=1736038&view=diff
==============================================================================
--- felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
(original)
+++ felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
Mon Mar 21 16:57:47 2016
@@ -239,13 +239,10 @@ public class ShellFactoryImpl implements
                 for (Map.Entry<String, String> e : env.getEnv().entrySet()) {
                     session.put(e.getKey(), e.getValue());
                 }
-                env.addSignalListener(new SignalListener() {
-                    @Override
-                    public void signal(Signal signal) {
-                        terminal.setSize(new Size(Integer.parseInt(env.getEnv().get("COLUMNS")),
-                                Integer.parseInt(env.getEnv().get("LINES"))));
-                        terminal.raise(Terminal.Signal.WINCH);
-                    }
+                env.addSignalListener(signals -> {
+                    terminal.setSize(new Size(Integer.parseInt(env.getEnv().get("COLUMNS")),
+                                                Integer.parseInt(env.getEnv().get("LINES"))));
+                    terminal.raise(Terminal.Signal.WINCH);
                 }, Signal.WINCH);
                 Context context = new Context() {
                     @Override



Mime
View raw message