Java Version set to 1.8
anonymous types replaced by lambda's Method references used instead of Lambda's Explicit type replaced by <> travis.yml updated to java 1.8
This commit is contained in:
committed by
Andreas Mager
parent
555893d287
commit
fb9765304c
@@ -152,12 +152,7 @@ public class ProtocolDecodingServer {
|
||||
System.out.println("Loop server started");
|
||||
startClientsTesting();
|
||||
//Bind a shutdown hook
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
server.stop();
|
||||
}
|
||||
});
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(server::stop));
|
||||
}
|
||||
|
||||
private static void startClientsTesting() throws MqttException, InterruptedException {
|
||||
|
||||
+1
-6
@@ -104,12 +104,7 @@ public class ProtocolPublishDecodingServer {
|
||||
publishBombing();
|
||||
publishBombing();
|
||||
//Bind a shutdown hook
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
server.stop();
|
||||
}
|
||||
});
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(server::stop));
|
||||
}
|
||||
|
||||
private static void publishBombing() {
|
||||
|
||||
Reference in New Issue
Block a user