Remove the need for synthetic methods 38/58838/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 13 Jun 2017 16:40:52 +0000 (18:40 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 20 Jun 2017 10:01:19 +0000 (10:01 +0000)
Using private methods from anonymous classes forces javac to create
synthetics. Lower isolation to package-private to call them directly.

Change-Id: I52a5d641f275d5a2e9924e60910641ccdce42281
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/KeepaliveSalFacade.java

index 2e33b57beb86f484d147b43d3982c74a7d397cd4..ee7e5a40266941447d0ef5b0df706669750275fb 100644 (file)
@@ -97,7 +97,7 @@ public final class KeepaliveSalFacade implements RemoteDeviceHandler<NetconfSess
      * <p>
      * Then schedule next keepalive.
      */
-    private void resetKeepalive() {
+    void resetKeepalive() {
         LOG.trace("{}: Resetting netconf keepalive timer", id);
         if (currentKeepalive != null) {
             currentKeepalive.cancel(false);
@@ -115,7 +115,7 @@ public final class KeepaliveSalFacade implements RemoteDeviceHandler<NetconfSess
         currentDeviceRpc = null;
     }
 
-    private void reconnect() {
+    void reconnect() {
         Preconditions.checkState(listener != null, "%s: Unable to reconnect, session listener is missing", id);
         stopKeepalives();
         LOG.info("{}: Reconnecting inactive netconf session", id);