dimanche 12 février 2017

Why are the methods of the ObjectMapper class not static? (Jackson API)

Vote count: -1

I understand that this class offers a utility service that does not need to be provided through an instance.

Would not it be better if methods such as readValue () and writeValueAsString () were static?

It makes more sense to use ObjectMapper.readValue(); instead of new ObjectMapper().ReadValue();

asked 59 secs ago

Let's block ads! (Why?)



Why are the methods of the ObjectMapper class not static? (Jackson API)

Aucun commentaire:

Enregistrer un commentaire