From 2685d08af5ff639854358e3e5aea393460a6a615 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sun, 1 Jun 2014 11:00:48 +0200 Subject: [PATCH] BUG-614: degrade NotifyTask to Runnable The call() method always returned null anyway, so we might as well make it Runnable. Change-Id: I6be36490aba33ba1bf4b205ba4d9b0aa8160dbdf Signed-off-by: Robert Varga --- .../controller/sal/binding/impl/NotifyTask.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotifyTask.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotifyTask.java index b0dd2a90f7..5f0de6bc16 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotifyTask.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/impl/NotifyTask.java @@ -7,8 +7,6 @@ */ package org.opendaylight.controller.sal.binding.impl; -import java.util.concurrent.Callable; - import org.opendaylight.controller.sal.binding.api.NotificationListener; import org.opendaylight.yangtools.yang.binding.Notification; import org.slf4j.Logger; @@ -17,7 +15,7 @@ import org.slf4j.LoggerFactory; import com.google.common.base.Objects; import com.google.common.base.Preconditions; -class NotifyTask implements Callable { +class NotifyTask implements Runnable { private static final Logger LOG = LoggerFactory.getLogger(NotifyTask.class); private final NotificationListener listener; @@ -34,7 +32,7 @@ class NotifyTask implements Callable { } @Override - public Object call() { + public void run() { if (LOG.isDebugEnabled()) { LOG.debug("Delivering notification {} to {}", notification, listener); } else { @@ -52,8 +50,6 @@ class NotifyTask implements Callable { } else { LOG.trace("Notification delivered {} to {}", notification.getClass().getName(), listener); } - - return null; } @Override -- 2.36.6