java-http-clients icon indicating copy to clipboard operation
java-http-clients copied to clipboard

Remove ObjectMapper duplicate

Open juancki opened this issue 2 years ago • 0 comments

I understand that this project is stale and this might be talking to a void, etc...

However, apparently the class JsonBodyHandler.java is referenced in Twilio's article about making HTTP requests in Java.

The class defines a static ObjectMapper in here that is never used.

And then it creates a new ObjectMapper each time the function is called in here. This is totally against Jackson's recommendations on using ObjectMapper.

juancki avatar Jun 14 '22 06:06 juancki