nodes
nodes copied to clipboard
ObjectMapper uses writeValueAsString()
In Fetch.java/send(...) ObjectMapper is invoked with writeValueAsString() and the string is immediately converted to bytes:
String requestParams = mapper.writeValueAsString(request);
byte[] postData = requestParams.getBytes();
This could be replaced by
byte[] postData = mapper.writeValueAsBytes(request);
if I understand correctly?