X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fcallhome-provider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fcallhome%2Fmount%2FCallhomeStatusReporter.java;h=1f819ae0a34ffa3f0cf5a32597ed9c72d1be6c86;hb=f0b0a99508a36b2087b507ad1ab976255599f4af;hp=728c291b786de1932c83b7bb26fc042f90bcb6ea;hpb=7e1c9a3ba9211a98027bd9da7dc84a4b2136eb84;p=netconf.git diff --git a/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallhomeStatusReporter.java b/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallhomeStatusReporter.java index 728c291b78..1f819ae0a3 100644 --- a/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallhomeStatusReporter.java +++ b/netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallhomeStatusReporter.java @@ -266,15 +266,15 @@ class CallhomeStatusReporter implements DataTreeChangeListener, StatusReco commit(tx, device.key()); } - private static void commit(WriteTransaction tx, DeviceKey device) { + private static void commit(final WriteTransaction tx, final DeviceKey device) { tx.commit().addCallback(new FutureCallback() { @Override - public void onSuccess(CommitInfo result) { + public void onSuccess(final CommitInfo result) { LOG.debug("Device {} committed", device); } @Override - public void onFailure(Throwable cause) { + public void onFailure(final Throwable cause) { LOG.warn("Failed to commit device {}", device, cause); } }, MoreExecutors.directExecutor()); @@ -287,7 +287,7 @@ class CallhomeStatusReporter implements DataTreeChangeListener, StatusReco try { return devicesFuture.get().orElse(null); } catch (ExecutionException | InterruptedException e) { - LOG.error("Error trying to read the whitelist devices: {}", e); + LOG.error("Error trying to read the whitelist devices", e); return null; } }