Bump odlparent 2.0.2 to 2.0.4
[controller.git] / opendaylight / commons / protocol-framework / src / test / java / org / opendaylight / protocol / framework / SimpleSessionListener.java
index 7004ee6..8db14f7 100644 (file)
@@ -17,9 +17,9 @@ import org.slf4j.LoggerFactory;
  * Simple Session Listener that is notified about messages and changes in the session.
  */
 public class SimpleSessionListener implements SessionListener<SimpleMessage, SimpleSession, TerminationReason> {
-    private static final Logger logger = LoggerFactory.getLogger(SimpleSessionListener.class);
+    private static final Logger LOG = LoggerFactory.getLogger(SimpleSessionListener.class);
 
-    public List<SimpleMessage> messages = new ArrayList<SimpleMessage>();
+    public List<SimpleMessage> messages = new ArrayList<>();
 
     public boolean up = false;
 
@@ -27,7 +27,7 @@ public class SimpleSessionListener implements SessionListener<SimpleMessage, Sim
 
     @Override
     public void onMessage(final SimpleSession session, final SimpleMessage message) {
-        logger.debug("Received message: " + message.getClass() + " " + message);
+        LOG.debug("Received message: " + message.getClass() + " " + message);
         this.messages.add(message);
     }
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.