Skip to content

Commit

Permalink
Merge pull request #169 from avaje/dependabot/maven/com.fasterxml.jac…
Browse files Browse the repository at this point in the history
…kson.core-jackson-core-2.15.3

Bump com.fasterxml.jackson.core:jackson-core from 2.14.2 to 2.15.3
  • Loading branch information
github-actions[bot] authored Oct 17, 2023
2 parents e078526 + d5d2a24 commit 81120ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jsonb-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.14.2</version>
<version>2.15.3</version>
</dependency>
<dependency>
<groupId>io.avaje</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package io.avaje.jsonb.jackson;

import java.io.IOException;

import com.fasterxml.jackson.core.io.SegmentedStringWriter;

import io.avaje.jsonb.JsonException;
import io.avaje.jsonb.JsonWriter;
import io.avaje.jsonb.spi.BufferedJsonWriter;
import io.avaje.jsonb.spi.DelegateJsonWriter;
Expand All @@ -17,6 +21,14 @@ final class JacksonWriteBuffer extends DelegateJsonWriter implements BufferedJso
@Override
public String result() {
delegate.close();
return buffer.getAndClear();

try {

return buffer.getAndClear();

} catch (IOException io) {

throw new JsonException(io);
}
}
}

0 comments on commit 81120ee

Please sign in to comment.