Skip to content

Avoid string conversion in ExecutionContextSerializer tests #3986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ protected Map<String, Object> serializationRoundTrip(Map<String, Object> m1) thr
ByteArrayOutputStream out = new ByteArrayOutputStream();
getSerializer().serialize(m1, out);

String s = new String(out.toByteArray(), "ISO-8859-1");

InputStream in = new ByteArrayInputStream(s.getBytes("ISO-8859-1"));
InputStream in = new ByteArrayInputStream(out.toByteArray());
Map<String, Object> m2 = getSerializer().deserialize(in);
return m2;
}
Expand Down