Remove remaining use of compat DTO methods 96/85396/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Oct 2019 13:25:51 +0000 (15:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Oct 2019 13:25:51 +0000 (15:25 +0200)
This fixes up the final three offenders.

Change-Id: I834fe08bae984d0e5798f5b30d68f7ed1d89f0cf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/NetconfServerSession.java
netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/MountPointEndToEndTest.java
netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/NetconfTopologyManagerTest.java

index 4c263402c3f73342b41e1ec515839b694e9d55c4..ba779b11213fd6d02cba05d3e2ae5e4acbc8a23f 100644 (file)
@@ -143,7 +143,7 @@ public final class NetconfServerSession extends AbstractNetconfSession<NetconfSe
         builder.setUsername(header.getUserName());
         builder.setTransport(getTransportForString(header.getTransport()));
 
-        builder.setOutNotifications(new ZeroBasedCounter32(outNotification));
+        builder.setOutNotifications(new ZeroBasedCounter32(Uint32.valueOf(outNotification)));
 
         builder.withKey(new SessionKey(Uint32.valueOf(getSessionId())));
 
index d0fbfc280fedcbb7918d008e31e53eae2f305c1e..638de1831b4c26935527022b409a5055f69214db 100644 (file)
@@ -197,7 +197,7 @@ public class MountPointEndToEndTest {
     private TransactionChain slaveTxChain;
 
     private final EventExecutor eventExecutor = GlobalEventExecutor.INSTANCE;
-    private final Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(0).build();
+    private final Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(Uint16.ZERO).build();
     private SchemaContext deviceSchemaContext;
     private YangModuleInfo topModuleInfo;
     private SchemaPath putTopRpcSchemaPath;
index 3f2921f7c02d2398cdd3b72e6beadb2b6f572838..82b2d325cb11437ca2b47d8edb4f7bafb2472920 100644 (file)
@@ -126,7 +126,7 @@ public class NetconfTopologyManagerTest {
         final AAAEncryptionService encryptionService = mock(AAAEncryptionService.class);
         final DeviceActionFactory deviceActionFactory = mock(DeviceActionFactory.class);
 
-        final Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(0).build();
+        final Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(Uint16.ZERO).build();
         netconfTopologyManager = new NetconfTopologyManager(dataBroker, rpcProviderRegistry, actionProviderRegistry,
                 clusterSingletonServiceProvider, keepaliveExecutor, processingThreadPool,
                 actorSystemProvider, eventExecutor, clientDispatcher, TOPOLOGY_ID, config,