Skip to content

Commit

Permalink
feat(impl):[#359] fix pmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-ext-kmassalski committed Mar 22, 2024
1 parent f67923c commit 5017c8c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 5017c8c

Please sign in to comment.