]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/JsonWriter.java
Make name optional for updateContact
[signal-cli] / src / main / java / org / asamk / signal / JsonWriter.java
index e7549adf8bcb4d1c13231adb7a4a201c7e317bf6..20cf7bc15b992fba15e01845e8b46eb4f93e4adf 100644 (file)
@@ -18,8 +18,8 @@ public class JsonWriter {
     private final Writer writer;
     private final ObjectMapper objectMapper;
 
-    public JsonWriter(final OutputStream writer) {
-        this.writer = new BufferedWriter(new OutputStreamWriter(writer, StandardCharsets.UTF_8));
+    public JsonWriter(final OutputStream outputStream) {
+        this.writer = new BufferedWriter(new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
 
         objectMapper = new ObjectMapper();
         objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY);