The call() method always returned null anyway, so we might as well make it
Runnable.
Change-Id: I6be36490aba33ba1bf4b205ba4d9b0aa8160dbdf
Signed-off-by: Robert Varga <rovarga@cisco.com>
*/
package org.opendaylight.controller.sal.binding.impl;
*/
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;
import org.opendaylight.controller.sal.binding.api.NotificationListener;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.slf4j.Logger;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
-class NotifyTask implements Callable<Object> {
+class NotifyTask implements Runnable {
private static final Logger LOG = LoggerFactory.getLogger(NotifyTask.class);
private final NotificationListener<?> listener;
private static final Logger LOG = LoggerFactory.getLogger(NotifyTask.class);
private final NotificationListener<?> listener;
if (LOG.isDebugEnabled()) {
LOG.debug("Delivering notification {} to {}", notification, listener);
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("Delivering notification {} to {}", notification, listener);
} else {
} else {
LOG.trace("Notification delivered {} to {}", notification.getClass().getName(), listener);
}
} else {
LOG.trace("Notification delivered {} to {}", notification.getClass().getName(), listener);
}