Use lambda
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1736038 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java b/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
index d19f848..b50cec7 100644
--- a/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
+++ b/gogo/jline/src/main/java/org/apache/felix/gogo/jline/ssh/ShellFactoryImpl.java
@@ -239,13 +239,10 @@
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