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
@@ -134,12 +134,9 @@ public class Client {
|
||||
|
||||
private void doConnect(MqttConnectMessage connectMessage) {
|
||||
final CountDownLatch latch = new CountDownLatch(1);
|
||||
this.setCallback(new Client.ICallback() {
|
||||
|
||||
public void call(MqttMessage msg) {
|
||||
receivedMsg = msg;
|
||||
latch.countDown();
|
||||
}
|
||||
this.setCallback(msg -> {
|
||||
receivedMsg = msg;
|
||||
latch.countDown();
|
||||
});
|
||||
|
||||
this.sendMessage(connectMessage);
|
||||
|
||||
Reference in New Issue
Block a user