File tree 2 files changed +6
-4
lines changed
src/main/java/com/github/fge/avro/translators
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,14 @@ dependencies {
36
36
version : " 1.2.12" );
37
37
compile(group : " com.github.java-json-tools" , name : " json-schema-validator" ,
38
38
version : " 2.2.12" );
39
- compile(group : " org.apache.avro" , name : " avro" , version : " 1.7.6 " ) {
39
+ compile(group : " org.apache.avro" , name : " avro" , version : " 1.9.1 " ) {
40
40
exclude(group : " org.slf4j" , module : " slf4j-api" );
41
41
exclude(group : " org.apache.commons" , module : " commons-compress" );
42
42
exclude(group : " com.thoughtworks.paranamer" , module : " paranamer" );
43
43
exclude(group : " org.xerial.snappy" , module : " snappy-java" );
44
44
}
45
+ compile(group : " com.fasterxml.jackson.core" , name : " jackson-databind" ,
46
+ version : " 2.9.9" );
45
47
testCompile(group : " org.testng" , name : " testng" , version : " 6.8.7" ) {
46
48
exclude(group : " junit" , module : " junit" );
47
49
exclude(group : " org.beanshell" , module : " bsh" );
Original file line number Diff line number Diff line change 18
18
19
19
package com .github .fge .avro .translators ;
20
20
21
+ import com .fasterxml .jackson .databind .JsonNode ;
22
+ import com .fasterxml .jackson .databind .ObjectMapper ;
21
23
import com .fasterxml .jackson .databind .node .ArrayNode ;
22
24
import com .fasterxml .jackson .databind .node .ObjectNode ;
23
25
import com .github .fge .avro .MutableTree ;
27
29
import com .github .fge .jsonschema .core .exceptions .ProcessingException ;
28
30
import com .github .fge .jsonschema .core .report .ProcessingReport ;
29
31
import org .apache .avro .Schema ;
30
- import org .codehaus .jackson .JsonNode ;
31
- import org .codehaus .jackson .map .ObjectMapper ;
32
32
33
33
import java .io .IOException ;
34
34
import java .util .List ;
@@ -109,7 +109,7 @@ protected void doTranslate(final Schema avroSchema,
109
109
private static void injectDefault (final ObjectNode propertyNode ,
110
110
final Schema .Field field )
111
111
{
112
- final JsonNode value = field .defaultValue ();
112
+ final JsonNode value = ( JsonNode ) field .defaultVal ();
113
113
if (value == null )
114
114
return ;
115
115
You can’t perform that action at this time.
0 commit comments