Skip to content

Commit

Permalink
Issue #1: typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagolvlsantos committed Mar 11, 2023
1 parent 8ab4a62 commit 0f6f752
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.fasterxml.jackson.databind.JsonNode;

public interface IRewritter {
public interface IRewriter {

JsonNode rewrite(JsonNode source);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import io.github.thiagolvlsantos.json.predicate.IPredicate;
import io.github.thiagolvlsantos.json.predicate.IPredicateFactory;
import io.github.thiagolvlsantos.json.predicate.IPredicateManager;
import io.github.thiagolvlsantos.json.predicate.IRewritter;
import io.github.thiagolvlsantos.json.predicate.IRewriter;
import io.github.thiagolvlsantos.json.predicate.array.IPredicateArray;
import io.github.thiagolvlsantos.json.predicate.array.impl.PredicateAnd;
import io.github.thiagolvlsantos.json.predicate.exceptions.JsonPredicateException;
Expand All @@ -35,7 +35,7 @@ public class PredicateFactoryJson implements IPredicateFactory {

private ObjectMapper mapper = new ObjectMapper();
private IPredicateManager manager = new PredicateManagerDefault();
private IRewritter rewritter = new RewritterDefault();
private IRewriter rewriter = new RewriterDefault();
private IAccess access = new AccessDefault();
private IConverter converter = new ConverterDefault();

Expand Down Expand Up @@ -119,7 +119,7 @@ private void fields(String gap, List<IPredicate> result, String key, JsonNode va
Iterator<Entry<String, JsonNode>> fs = value.fields();
if (!fs.hasNext()) {
JsonNode old = value;
value = rewritter.rewrite(value);
value = rewriter.rewrite(value);
log.debug("{} REWRITE>{} as {}", gap, old.toPrettyString(), value.toPrettyString());
fs = value.fields();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import io.github.thiagolvlsantos.json.predicate.IRewritter;
import io.github.thiagolvlsantos.json.predicate.IRewriter;

public class RewritterDefault implements IRewritter {
public class RewriterDefault implements IRewriter {

private ObjectMapper mapper = new ObjectMapper();

Expand Down

0 comments on commit 0f6f752

Please sign in to comment.