Bump upstreams
[openflowplugin.git] / samples / learning-switch / src / main / java / org / opendaylight / openflowplugin / learningswitch / LearningSwitchManagerSimpleImpl.java
index d624643a45057ae9007f80c7202960bf5e37e88f..26c582bbc65706e46e646aefb2f4e56deb8954c7 100644 (file)
@@ -35,13 +35,13 @@ import org.slf4j.LoggerFactory;
  */
 public class LearningSwitchManagerSimpleImpl
         implements DataTreeChangeListenerRegistrationHolder, LearningSwitchManager {
-
     private static final Logger LOG = LoggerFactory.getLogger(LearningSwitchManagerSimpleImpl.class);
-    private NotificationService notificationService;
+
+    private NotificationService notificationService = null;
     private PacketProcessingService packetProcessingService;
-    private DataBroker data;
-    private Registration packetInRegistration;
-    private ListenerRegistration<DataTreeChangeListener> dataTreeChangeListenerRegistration;
+    private DataBroker data = null;
+    private Registration packetInRegistration = null;
+    private ListenerRegistration<DataTreeChangeListener> dataTreeChangeListenerRegistration = null;
 
     /**
      * Sets the NotificationService.
@@ -49,7 +49,7 @@ public class LearningSwitchManagerSimpleImpl
      * @param notificationService the notificationService to set
      */
     @Override
-    public void setNotificationService(NotificationService notificationService) {
+    public void setNotificationService(final NotificationService notificationService) {
         this.notificationService = notificationService;
     }
 
@@ -60,7 +60,7 @@ public class LearningSwitchManagerSimpleImpl
      */
     @Override
     public void setPacketProcessingService(
-            PacketProcessingService packetProcessingService) {
+            final PacketProcessingService packetProcessingService) {
         this.packetProcessingService = packetProcessingService;
     }
 
@@ -68,7 +68,7 @@ public class LearningSwitchManagerSimpleImpl
      * Sets the DataBroker.
      */
     @Override
-    public void setDataBroker(DataBroker broker) {
+    public void setDataBroker(final DataBroker broker) {
         data = broker;
     }