Skip to content

Commit 9782dac

Browse files
committed
Dependencies updates
1 parent 18bcdc8 commit 9782dac

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<dependency>
7171
<groupId>com.github.fge</groupId>
7272
<artifactId>json-schema-validator</artifactId>
73-
<version>2.1.2</version>
73+
<version>2.1.7</version>
7474
</dependency>
7575
<dependency>
7676
<groupId>org.apache.avro</groupId>
@@ -98,7 +98,7 @@
9898
<dependency>
9999
<groupId>org.testng</groupId>
100100
<artifactId>testng</artifactId>
101-
<version>6.8</version>
101+
<version>6.8.5</version>
102102
<scope>test</scope>
103103
<exclusions>
104104
<exclusion>

src/main/java/com/github/fge/avro/MutableTree.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import com.github.fge.jackson.NodeType;
88
import com.github.fge.jackson.jsonpointer.JsonPointer;
99
import com.github.fge.jsonschema.util.AsJson;
10-
import net.jcip.annotations.NotThreadSafe;
10+
11+
import javax.annotation.concurrent.NotThreadSafe;
1112

1213
@NotThreadSafe
1314
public final class MutableTree

src/main/java/com/github/fge/avro/translators/AvroTranslator.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.github.fge.avro.MutableTree;
55
import com.github.fge.jackson.JacksonUtils;
66
import com.github.fge.jsonschema.exceptions.ProcessingException;
7-
import com.github.fge.jsonschema.report.ProcessingMessage;
87
import com.github.fge.jsonschema.report.ProcessingReport;
98
import org.apache.avro.Schema;
109

@@ -15,10 +14,4 @@ public abstract class AvroTranslator
1514
public abstract void translate(final Schema avroSchema,
1615
final MutableTree jsonSchema, final ProcessingReport report)
1716
throws ProcessingException;
18-
19-
protected static final <T> ProcessingMessage newMsg(final MutableTree tree,
20-
final T message)
21-
{
22-
return new ProcessingMessage().message(message).put("tree", tree);
23-
}
2417
}

src/main/java/com/github/fge/avro/translators/NamedAvroTypeTranslator.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import com.github.fge.avro.MutableTree;
44
import com.github.fge.jackson.jsonpointer.JsonPointer;
55
import com.github.fge.jsonschema.exceptions.ProcessingException;
6-
import com.github.fge.jsonschema.exceptions.unchecked.ProcessingError;
7-
import com.github.fge.jsonschema.report.ProcessingMessage;
86
import com.github.fge.jsonschema.report.ProcessingReport;
97
import org.apache.avro.Schema;
108

@@ -46,9 +44,8 @@ private static String createRef(final JsonPointer pointer)
4644
{
4745
try {
4846
return new URI(null, null, pointer.toString()).toString();
49-
} catch (URISyntaxException ignored) {
50-
throw new ProcessingError(new ProcessingMessage()
51-
.message("How on earth did I get there???"));
47+
} catch (URISyntaxException e) {
48+
throw new IllegalStateException("How did I get there??", e);
5249
}
5350
}
5451
}

0 commit comments

Comments
 (0)