mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-30 19:14:20 +01:00
Make fields in json classes final and omit unnecessary nulls when serializing
Fix sender in sync read messages
This commit is contained in:
@@ -20,7 +20,7 @@ public class JsonWriter {
|
||||
this.writer = new OutputStreamWriter(writer, StandardCharsets.UTF_8);
|
||||
|
||||
objectMapper = new ObjectMapper();
|
||||
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
|
||||
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY);
|
||||
objectMapper.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user