Skip to content

Commit 8086d86

Browse files
committed
Update jackson-coreutils deps.
The de-Guava-ing of jackson-coreutils means pulling in the Guava-specific Equivalence class from the new jackson-coreutils-equivalence.
1 parent 83f5670 commit 8086d86

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

project.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ project.ext {
3535
dependencies {
3636
compile(group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.11.0");
3737
compile(group: "com.google.guava", name: "guava", version: "28.2-android");
38-
compile(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "1.12");
38+
compile(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "2.0-SNAPSHOT");
39+
compile(group: "com.github.java-json-tools", name: "jackson-coreutils-equivalence", version: "1.0-SNAPSHOT");
3940
compile(group: "com.github.java-json-tools", name: "uri-template", version: "0.10");
4041
// FIXME: no javadoc
4142
// FIXME: update beyond 1.7.7.x once we're Java 8 or better.

src/main/java/com/github/fge/jsonschema/core/keyword/syntax/checkers/common/EnumSyntaxChecker.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
package com.github.fge.jsonschema.core.keyword.syntax.checkers.common;
2121

2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.github.fge.jackson.JsonNumEquals;
23+
import com.github.fge.jackson.JsonNumEquivalence;
2424
import com.github.fge.jackson.NodeType;
2525
import com.github.fge.jackson.jsonpointer.JsonPointer;
2626
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
@@ -38,13 +38,12 @@
3838
/**
3939
* Syntax checker for the {@code enum} keyword
4040
*
41-
* @see JsonNumEquals
41+
* @see JsonNumEquivalence
4242
*/
4343
public final class EnumSyntaxChecker
4444
extends AbstractSyntaxChecker
4545
{
46-
private static final Equivalence<JsonNode> EQUIVALENCE
47-
= JsonNumEquals.getInstance();
46+
private static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();
4847

4948
private static final SyntaxChecker INSTANCE = new EnumSyntaxChecker();
5049

src/main/java/com/github/fge/jsonschema/core/keyword/syntax/checkers/draftv3/DraftV3TypeKeywordSyntaxChecker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv3;
2121

2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.github.fge.jackson.JsonNumEquals;
23+
import com.github.fge.jackson.JsonNumEquivalence;
2424
import com.github.fge.jackson.NodeType;
2525
import com.github.fge.jackson.jsonpointer.JsonPointer;
2626
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
@@ -46,7 +46,7 @@ public final class DraftV3TypeKeywordSyntaxChecker
4646
{
4747
private static final String ANY = "any";
4848
private static final Equivalence<JsonNode> EQUIVALENCE
49-
= JsonNumEquals.getInstance();
49+
= JsonNumEquivalence.getInstance();
5050

5151
public DraftV3TypeKeywordSyntaxChecker(final String keyword)
5252
{

src/main/java/com/github/fge/jsonschema/core/keyword/syntax/checkers/draftv4/DraftV4TypeSyntaxChecker.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv4;
2121

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

48-
private static final Equivalence<JsonNode> EQUIVALENCE
49-
= JsonNumEquals.getInstance();
48+
private static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();
5049

5150
private static final SyntaxChecker INSTANCE
5251
= new DraftV4TypeSyntaxChecker();

src/main/java/com/github/fge/jsonschema/core/keyword/syntax/checkers/draftv4/RequiredSyntaxChecker.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
package com.github.fge.jsonschema.core.keyword.syntax.checkers.draftv4;
2121

2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.github.fge.jackson.JsonNumEquals;
23+
import com.github.fge.jackson.JsonNumEquivalence;
2424
import com.github.fge.jackson.NodeType;
2525
import com.github.fge.jackson.jsonpointer.JsonPointer;
2626
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
@@ -42,8 +42,7 @@
4242
public final class RequiredSyntaxChecker
4343
extends AbstractSyntaxChecker
4444
{
45-
private static final Equivalence<JsonNode> EQUIVALENCE
46-
= JsonNumEquals.getInstance();
45+
private static final Equivalence<JsonNode> EQUIVALENCE = new JsonNumEquivalence();
4746

4847
private static final SyntaxChecker INSTANCE = new RequiredSyntaxChecker();
4948

src/main/java/com/github/fge/jsonschema/core/keyword/syntax/checkers/helpers/DependenciesSyntaxChecker.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import com.fasterxml.jackson.databind.JsonNode;
2323
import com.github.fge.jackson.JacksonUtils;
24-
import com.github.fge.jackson.JsonNumEquals;
24+
import com.github.fge.jackson.JsonNumEquivalence;
2525
import com.github.fge.jackson.NodeType;
2626
import com.github.fge.jackson.jsonpointer.JsonPointer;
2727
import com.github.fge.jsonschema.core.exceptions.InvalidSchemaException;
@@ -49,8 +49,7 @@ public abstract class DependenciesSyntaxChecker
4949
/**
5050
* JSON Schema equivalence
5151
*/
52-
protected static final Equivalence<JsonNode> EQUIVALENCE
53-
= JsonNumEquals.getInstance();
52+
protected static final Equivalence<JsonNode> EQUIVALENCE = JsonNumEquivalence.getInstance();
5453

5554
/**
5655
* Valid types for one dependency value

0 commit comments

Comments
 (0)