Skip to content

Commit 426dba2

Browse files
Bump the dependencies group with 2 updates (#15)
* Bump the dependencies group with 2 updates Bumps the dependencies group with 2 updates: [io.avaje:avaje-jsonb](https://github.com/avaje/avaje-jsonb) and io.avaje:avaje-jsonb-generator. Updates `io.avaje:avaje-jsonb` from 2.4 to 3.0 - [Release notes](https://github.com/avaje/avaje-jsonb/releases) - [Commits](avaje/avaje-jsonb@2.4...3.0) Updates `io.avaje:avaje-jsonb-generator` from 2.4 to 3.0 --- updated-dependencies: - dependency-name: io.avaje:avaje-jsonb dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies - dependency-name: io.avaje:avaje-jsonb-generator dependency-type: direct:development update-type: version-update:semver-major dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Update JacksonBodyMapper.java --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josiah Noel <32279667+SentryMan@users.noreply.github.com>
1 parent ed986ce commit 426dba2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

avaje-sigma/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>io.avaje</groupId>
3737
<artifactId>avaje-jsonb</artifactId>
38-
<version>2.4</version>
38+
<version>3.0</version>
3939
<optional>true</optional>
4040
</dependency>
4141

@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>io.avaje</groupId>
5050
<artifactId>avaje-jsonb-generator</artifactId>
51-
<version>2.4</version>
51+
<version>3.0</version>
5252
<scope>test</scope>
5353
</dependency>
5454

avaje-sigma/src/main/java/io/avaje/sigma/body/JacksonBodyMapper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package io.avaje.sigma.body;
22

3+
import java.io.UncheckedIOException;
4+
35
import com.fasterxml.jackson.core.JsonProcessingException;
46
import com.fasterxml.jackson.databind.ObjectMapper;
5-
import io.avaje.jsonb.JsonIoException;
67

78
/** BodyMapper based on Jackson's ObjectMapper */
89
public class JacksonBodyMapper implements BodyMapper {
@@ -23,7 +24,7 @@ public <T> T readBody(Class<T> clazz, String body) {
2324
try {
2425
return delegate.readValue(body, clazz);
2526
} catch (JsonProcessingException e) {
26-
throw new JsonIoException(e);
27+
throw new UncheckedIOException(e);
2728
}
2829
}
2930

@@ -32,7 +33,7 @@ public String writeBody(Object bean) {
3233
try {
3334
return delegate.writeValueAsString(bean);
3435
} catch (JsonProcessingException e) {
35-
throw new JsonIoException(e);
36+
throw new UncheckedIOException(e);
3637
}
3738
}
3839
}

0 commit comments

Comments
 (0)