Skip to content

Commit

Permalink
Update jackson-coreutils deps.
Browse files Browse the repository at this point in the history
The de-Guava-ing of jackson-coreutils means pulling in the Guava-specific Equivalence class from the new jackson-coreutils-equivalence.
  • Loading branch information
Capstan committed May 27, 2020
1 parent 83f5670 commit 8086d86
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
3 changes: 2 additions & 1 deletion project.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ project.ext {
dependencies {
compile(group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.11.0");
compile(group: "com.google.guava", name: "guava", version: "28.2-android");
compile(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "1.12");
compile(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "2.0-SNAPSHOT");
compile(group: "com.github.java-json-tools", name: "jackson-coreutils-equivalence", version: "1.0-SNAPSHOT");
compile(group: "com.github.java-json-tools", name: "uri-template", version: "0.10");
// FIXME: no javadoc
// FIXME: update beyond 1.7.7.x once we're Java 8 or better.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package com.github.fge.jsonschema.core.keyword.syntax.checkers.common;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JsonNumEquals;
import com.github.fge.jackson.JsonNumEquivalence;
import com.github.fge.jackson.NodeType;
import com.github.fge.jackson.jsonpointer.JsonPointer;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
Expand All @@ -38,13 +38,12 @@
/**
* Syntax checker for the {@code enum} keyword
*
* @see JsonNumEquals
* @see JsonNumEquivalence
*/
public final class EnumSyntaxChecker
extends AbstractSyntaxChecker
{
private static final Equivalence<JsonNode> EQUIVALENCE
= JsonNumEquals.getInstance();
private static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();

private static final SyntaxChecker INSTANCE = new EnumSyntaxChecker();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv3;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JsonNumEquals;
import com.github.fge.jackson.JsonNumEquivalence;
import com.github.fge.jackson.NodeType;
import com.github.fge.jackson.jsonpointer.JsonPointer;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
Expand All @@ -46,7 +46,7 @@ public final class DraftV3TypeKeywordSyntaxChecker
{
private static final String ANY = "any";
private static final Equivalence<JsonNode> EQUIVALENCE
= JsonNumEquals.getInstance();
= JsonNumEquivalence.getInstance();

public DraftV3TypeKeywordSyntaxChecker(final String keyword)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv4;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JsonNumEquals;
import com.github.fge.jackson.JsonNumEquivalence;
import com.github.fge.jackson.NodeType;
import com.github.fge.jackson.jsonpointer.JsonPointer;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
Expand All @@ -45,8 +45,7 @@ public final class DraftV4TypeSyntaxChecker
private static final EnumSet<NodeType> ALL_TYPES
= EnumSet.allOf(NodeType.class);

private static final Equivalence<JsonNode> EQUIVALENCE
= JsonNumEquals.getInstance();
private static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();

private static final SyntaxChecker INSTANCE
= new DraftV4TypeSyntaxChecker();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv4;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JsonNumEquals;
import com.github.fge.jackson.JsonNumEquivalence;
import com.github.fge.jackson.NodeType;
import com.github.fge.jackson.jsonpointer.JsonPointer;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
Expand All @@ -42,8 +42,7 @@
public final class RequiredSyntaxChecker
extends AbstractSyntaxChecker
{
private static final Equivalence<JsonNode> EQUIVALENCE
= JsonNumEquals.getInstance();
private static final Equivalence<JsonNode> EQUIVALENCE = new JsonNumEquivalence();

private static final SyntaxChecker INSTANCE = new RequiredSyntaxChecker();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jackson.JacksonUtils;
import com.github.fge.jackson.JsonNumEquals;
import com.github.fge.jackson.JsonNumEquivalence;
import com.github.fge.jackson.NodeType;
import com.github.fge.jackson.jsonpointer.JsonPointer;
import com.github.fge.jsonschema.core.exceptions.InvalidSchemaException;
Expand Down Expand Up @@ -49,8 +49,7 @@ public abstract class DependenciesSyntaxChecker
/**
* JSON Schema equivalence
*/
protected static final Equivalence<JsonNode> EQUIVALENCE
= JsonNumEquals.getInstance();
protected static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();

/**
* Valid types for one dependency value
Expand Down

0 comments on commit 8086d86

Please sign in to comment.