Bug-731: Fixed few major Sonar warnings
[bgpcep.git] / pcep / testtool / src / main / java / org / opendaylight / protocol / pcep / testtool / TestingSessionListener.java
index d16d4221857cdba6161cf16c6da480e944bd0e12..0599d6ad94bdff7ee210c703c90cbc26a7e3b8d8 100644 (file)
@@ -8,9 +8,7 @@
 package org.opendaylight.protocol.pcep.testtool;
 
 import com.google.common.collect.Lists;
-
 import java.util.List;
-
 import org.opendaylight.protocol.pcep.PCEPSession;
 import org.opendaylight.protocol.pcep.PCEPSessionListener;
 import org.opendaylight.protocol.pcep.PCEPTerminationReason;
@@ -22,7 +20,7 @@ public class TestingSessionListener implements PCEPSessionListener {
 
     private final List<Message> messages = Lists.newArrayList();
 
-    public boolean up = false;
+    private boolean up = false;
 
     private static final Logger LOG = LoggerFactory.getLogger(TestingSessionListener.class);
 
@@ -55,4 +53,8 @@ public class TestingSessionListener implements PCEPSessionListener {
     public List<Message> messages() {
         return this.messages;
     }
+
+    public boolean isUp () {
+        return this.up;
+    }
 }