Skip to content

Commit

Permalink
Remove unused prettyMapper from Jackson
Browse files Browse the repository at this point in the history
  • Loading branch information
chacham committed Nov 25, 2021
1 parent 670f608 commit 16ae4cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,13 @@

public abstract class Jackson {
private final ObjectMapper compactMapper;
private final ObjectMapper prettyMapper;
private final JsonFactory compactFactory;
private final JsonFactory prettyFactory;

public static final NullNode nullNode = NullNode.instance;

protected Jackson(ObjectMapper compactMapper, ObjectMapper prettyMapper,
JsonFactory compactFactory, JsonFactory prettyFactory) {
protected Jackson(ObjectMapper compactMapper, JsonFactory compactFactory, JsonFactory prettyFactory) {
this.compactMapper = compactMapper;
this.prettyMapper = prettyMapper;
this.compactFactory = compactFactory;
this.prettyFactory = prettyFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public MappingProvider mappingProvider() {
}

private JacksonJson() {
super(compactMapper, prettyMapper, compactFactory, prettyFactory);
super(compactMapper, compactFactory, prettyFactory);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class JacksonYaml extends Jackson {
public static final Jackson INSTANCE = new JacksonYaml();

private JacksonYaml() {
super(yamlMapper, yamlMapper, yamlFactory, yamlFactory);
super(yamlMapper, yamlFactory, yamlFactory);
}

@Override
Expand Down

0 comments on commit 16ae4cc

Please sign in to comment.