File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed
src/main/java/com/github/fge/avro Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 70
70
<dependency >
71
71
<groupId >com.github.fge</groupId >
72
72
<artifactId >json-schema-validator</artifactId >
73
- <version >2.1.2 </version >
73
+ <version >2.1.7 </version >
74
74
</dependency >
75
75
<dependency >
76
76
<groupId >org.apache.avro</groupId >
98
98
<dependency >
99
99
<groupId >org.testng</groupId >
100
100
<artifactId >testng</artifactId >
101
- <version >6.8</version >
101
+ <version >6.8.5 </version >
102
102
<scope >test</scope >
103
103
<exclusions >
104
104
<exclusion >
Original file line number Diff line number Diff line change 7
7
import com .github .fge .jackson .NodeType ;
8
8
import com .github .fge .jackson .jsonpointer .JsonPointer ;
9
9
import com .github .fge .jsonschema .util .AsJson ;
10
- import net .jcip .annotations .NotThreadSafe ;
10
+
11
+ import javax .annotation .concurrent .NotThreadSafe ;
11
12
12
13
@ NotThreadSafe
13
14
public final class MutableTree
Original file line number Diff line number Diff line change 4
4
import com .github .fge .avro .MutableTree ;
5
5
import com .github .fge .jackson .JacksonUtils ;
6
6
import com .github .fge .jsonschema .exceptions .ProcessingException ;
7
- import com .github .fge .jsonschema .report .ProcessingMessage ;
8
7
import com .github .fge .jsonschema .report .ProcessingReport ;
9
8
import org .apache .avro .Schema ;
10
9
@@ -15,10 +14,4 @@ public abstract class AvroTranslator
15
14
public abstract void translate (final Schema avroSchema ,
16
15
final MutableTree jsonSchema , final ProcessingReport report )
17
16
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
- }
24
17
}
Original file line number Diff line number Diff line change 3
3
import com .github .fge .avro .MutableTree ;
4
4
import com .github .fge .jackson .jsonpointer .JsonPointer ;
5
5
import com .github .fge .jsonschema .exceptions .ProcessingException ;
6
- import com .github .fge .jsonschema .exceptions .unchecked .ProcessingError ;
7
- import com .github .fge .jsonschema .report .ProcessingMessage ;
8
6
import com .github .fge .jsonschema .report .ProcessingReport ;
9
7
import org .apache .avro .Schema ;
10
8
@@ -46,9 +44,8 @@ private static String createRef(final JsonPointer pointer)
46
44
{
47
45
try {
48
46
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 );
52
49
}
53
50
}
54
51
}
You can’t perform that action at this time.
0 commit comments