NO-JIRA MQTT interceptor example checkstyle

This commit is contained in:
Justin Bertram 2017-08-21 09:41:48 -05:00 committed by Clebert Suconic
parent 8d3f484387
commit 3d89a5eb21
2 changed files with 2 additions and 3 deletions

View File

@ -51,8 +51,7 @@ public class SimpleMQTTInterceptor implements MQTTInterceptor {
String modifiedMessage = "Modified message ";
message.payload().setBytes(0, modifiedMessage.getBytes());
}
else {
} else {
if (mqttMessage instanceof MqttConnectMessage) {
MqttConnectMessage connectMessage = (MqttConnectMessage) mqttMessage;
System.out.println("A MQTT CONNECT control packet was intercepted " + connectMessage);