mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-26 16:23:17 +01:00
21 lines
556 B
Java
21 lines
556 B
Java
package org.whispersystems.textsecuregcm.util;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
import com.fasterxml.jackson.annotation.PropertyAccessor;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
public class SystemMapper {
|
|
|
|
private static final ObjectMapper mapper = new ObjectMapper();
|
|
|
|
static {
|
|
mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.NONE);
|
|
mapper.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY);
|
|
}
|
|
|
|
public static ObjectMapper getMapper() {
|
|
return mapper;
|
|
}
|
|
|
|
}
|