My class looks something like this:
public Class A {
     private static final ObjectMapper mapper = new ObjectMapper();
     public String get(String key) {
          JsonNode nod = mapper.readTree(getFromCache(key));
     }
}
Multiple threads would be accessing this method. Do I need to synchronize it? Do I need to move the mapper inside the method?
 
     
     
     
     
    