From 82d93922dcc41353c92d092d25d110b4f4d48c62 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Tue, 15 Sep 2020 15:53:57 +0200 Subject: [PATCH] Unplug savagely a GNPy link to the PCE module MDSAL codecRegistry Serializer implementation can no more be used directly as it is done in the PCE for GNPy. This operation must be done now through the BindingDOMCodec OSGi Services instead. However, this adaptation is easier to proceed after the PCE migration. Let's unplug this part of the code for the moment. JIRA: TRNSPRTPCE-292 TRNSPRTPCE-302 TRNSPRTPCE-314 Signed-off-by: guillaume.lambert Change-Id: If841413637b1d6983bdae49d835f6ccb574036d8 --- .../pce/gnpy/ServiceDataStoreOperationsImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pce/src/main/java/org/opendaylight/transportpce/pce/gnpy/ServiceDataStoreOperationsImpl.java b/pce/src/main/java/org/opendaylight/transportpce/pce/gnpy/ServiceDataStoreOperationsImpl.java index 377e611c2..72ac832b0 100644 --- a/pce/src/main/java/org/opendaylight/transportpce/pce/gnpy/ServiceDataStoreOperationsImpl.java +++ b/pce/src/main/java/org/opendaylight/transportpce/pce/gnpy/ServiceDataStoreOperationsImpl.java @@ -38,6 +38,9 @@ import org.opendaylight.yangtools.yang.model.api.SchemaPath; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +@edu.umd.cs.findbugs.annotations.SuppressFBWarnings( + value = "DLS_DEAD_LOCAL_STORE", + justification = "FIXME aluminium migration pending: need to convert GNPy to BindingDOMCodecServices") public class ServiceDataStoreOperationsImpl implements ServiceDataStoreOperations { private static final Logger LOG = LoggerFactory.getLogger(ServiceDataStoreOperationsImpl.class); @@ -101,7 +104,8 @@ public class ServiceDataStoreOperationsImpl implements ServiceDataStoreOperation scPath.getParent(), scPath.getLastComponent().getNamespace(), JsonWriterFactory.createJsonWriter(writer, 2));) { // The write part - codecRegistry.getSerializer(id.getTargetType()).serialize(object, codecRegistry.newWriter(id, domWriter)); + //FIXME + //codecRegistry.getSerializer(id.getTargetType()).serialize(object, codecRegistry.newWriter(id, domWriter)); } catch (IOException e) { throw new GnpyException("In ServiceDataStoreOperationsImpl: exception during json file creation",e); } -- 2.36.6