File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/java/io/avaje/http/client Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3434 <dependency >
3535 <groupId >io.avaje</groupId >
3636 <artifactId >avaje-jsonb</artifactId >
37- <version >0.8 </version >
37+ <version >0.11 </version >
3838 <optional >true</optional >
3939 </dependency >
4040
Original file line number Diff line number Diff line change 66import com .fasterxml .jackson .databind .type .CollectionType ;
77
88import java .io .IOException ;
9+ import java .io .UncheckedIOException ;
910import java .util .List ;
1011import java .util .concurrent .ConcurrentHashMap ;
1112
@@ -98,7 +99,7 @@ public T readBody(String content) {
9899 try {
99100 return reader .readValue (content );
100101 } catch (IOException e ) {
101- throw new RuntimeException (e );
102+ throw new UncheckedIOException (e );
102103 }
103104 }
104105
@@ -107,7 +108,7 @@ public T read(BodyContent bodyContent) {
107108 try {
108109 return reader .readValue (bodyContent .content ());
109110 } catch (IOException e ) {
110- throw new RuntimeException (e );
111+ throw new UncheckedIOException (e );
111112 }
112113 }
113114 }
@@ -132,7 +133,7 @@ public BodyContent write(T bean) {
132133 try {
133134 return BodyContent .asJson (writer .writeValueAsBytes (bean ));
134135 } catch (JsonProcessingException e ) {
135- throw new RuntimeException (e );
136+ throw new UncheckedIOException (e );
136137 }
137138 }
138139 }
You can’t perform that action at this time.
0 commit comments