Skip to content

Commit 1f9c4c6

Browse files
committed
GH-5723: migrate rdf4j-rio-api to Jackson 3.1.2
- Update jackson-core and jackson-databind dependencies to tools.jackson.core groupId; jackson-annotations remains at 2.21 - SetRioSetting: JsonProcessingException → JacksonException, update TypeReference and ObjectMapper imports to tools.jackson.*
1 parent b65788e commit 1f9c4c6

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

core/rio/api/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@
8585
<artifactId>jackson-annotations</artifactId>
8686
</dependency>
8787
<dependency>
88-
<groupId>com.fasterxml.jackson.core</groupId>
88+
<groupId>tools.jackson.core</groupId>
8989
<artifactId>jackson-core</artifactId>
90+
<version>${jackson3.version}</version>
9091
</dependency>
9192
<dependency>
92-
<groupId>com.fasterxml.jackson.core</groupId>
93+
<groupId>tools.jackson.core</groupId>
9394
<artifactId>jackson-databind</artifactId>
95+
<version>${jackson3.version}</version>
9496
</dependency>
9597
<dependency>
9698
<groupId>commons-io</groupId>

core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/SetRioSetting.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
import org.eclipse.rdf4j.rio.RioSetting;
1919

20-
import com.fasterxml.jackson.core.JsonProcessingException;
21-
import com.fasterxml.jackson.core.type.TypeReference;
22-
import com.fasterxml.jackson.databind.ObjectMapper;
20+
import tools.jackson.core.JacksonException;
21+
import tools.jackson.core.type.TypeReference;
22+
import tools.jackson.databind.ObjectMapper;
2323

2424
/**
2525
* A {@link RioSetting} with a {@link Set} value. The given default for the setting can be overridden by means of a
@@ -41,7 +41,7 @@ public Set<T> convert(String stringRepresentation) {
4141
try {
4242
return new HashSet<>(objectMapper.readValue(stringRepresentation, new TypeReference<List<T>>() {
4343
}));
44-
} catch (JsonProcessingException e) {
44+
} catch (JacksonException e) {
4545
throw new RuntimeException(e);
4646
}
4747
}

0 commit comments

Comments
 (0)