ObjectMapper
in Jackson seem to be thread safe.
http://wiki.fasterxml.com/JacksonFAQThreadSafety
Does this mean, is it OK for me to declare
class Me {
private static final ObjectMapper mapper = new ObjectMapper();
}
instead of
class Me {
private final ObjectMapper mapper = new ObjectMapper();
}
Thanks.