From 5017c8c6451a1e703db07e71911b3cdf9a2d148c Mon Sep 17 00:00:00 2001 From: "Krzysztof Massalski (Extern)" Date: Fri, 22 Mar 2024 14:29:04 +0100 Subject: [PATCH] feat(impl):[#359] fix pmd --- .../decentral/DecentralDigitalTwinRegistryClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryClient.java b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryClient.java index eb01f48b46..6247c5e2be 100644 --- a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryClient.java +++ b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/decentral/DecentralDigitalTwinRegistryClient.java @@ -104,10 +104,10 @@ private static String encodeWithBase64(final IdentifierKeyValuePair assetIds) { } private static byte[] serialize(final IdentifierKeyValuePair assetIds) { - final ByteArrayOutputStream os = new ByteArrayOutputStream(); + final ByteArrayOutputStream stream = new ByteArrayOutputStream(); try { - WRITER.writeValue(os, assetIds); - return os.toByteArray(); + WRITER.writeValue(stream, assetIds); + return stream.toByteArray(); } catch (final IOException e) { return new byte[0]; }