Remove usage of DOMNotificationRouter.create meth 49/99949/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Thu, 3 Mar 2022 12:50:57 +0000 (13:50 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 3 Mar 2022 12:50:57 +0000 (13:50 +0100)
Since this method is marked as deprecated and for removal, change the
way to instanciate a DOMNotificationRouter object.

JIRA: TRNSPRTPCE-627
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ied393b60a5318b792b1f4a08e79063e0289a8029

test-common/src/main/java/org/opendaylight/transportpce/test/DataStoreContextImpl.java

index 9fea5cb4a87042b17a2b0a68bfdef43e8e6e7c0f..b3fd4f24a87e31a256674eea8eca20251a97ccdb 100644 (file)
@@ -55,7 +55,7 @@ public class DataStoreContextImpl implements DataStoreContext {
         schemaCtx = BindingRuntimeHelpers.createEffectiveModel(moduleInfos);
         bindingDOMCodecServices = new BindingCodecContext(BindingRuntimeHelpers.createRuntimeContext());
         adapterFactory = new BindingAdapterFactory(new ConstantAdapterContext(bindingDOMCodecServices));
-        domNotificationRouter = DOMNotificationRouter.create(16);
+        domNotificationRouter = new DOMNotificationRouter(16);
         datastores = createDatastores();
         domDataBroker = createDOMDataBroker();
         dataBroker = createDataBroker();