Rename method parameter

This commit is contained in:
AsamK 2021-06-13 13:37:46 +02:00
parent 5e50a4cc4a
commit 0b2d37fe68

View file

@ -18,8 +18,8 @@ public class JsonWriter {
private final Writer writer; private final Writer writer;
private final ObjectMapper objectMapper; private final ObjectMapper objectMapper;
public JsonWriter(final OutputStream writer) { public JsonWriter(final OutputStream outputStream) {
this.writer = new BufferedWriter(new OutputStreamWriter(writer, StandardCharsets.UTF_8)); this.writer = new BufferedWriter(new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
objectMapper = new ObjectMapper(); objectMapper = new ObjectMapper();
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY); objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY);