Skip to content

Commit a7c813a

Browse files
committed
Update Jackson to 3.2.2.
- Modifies JsonTypeInfo logic, see Jackson #1329
1 parent fbb14f6 commit a7c813a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

matrix-sdk-core/src/main/java/io/github/hikingc/matrixsdk/api/events/ClientEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@JsonInclude(JsonInclude.Include.NON_ABSENT)
1818
@JsonTypeInfo(
1919
use = JsonTypeInfo.Id.NAME,
20-
include = JsonTypeInfo.As.PROPERTY,
20+
include = JsonTypeInfo.As.EXISTING_PROPERTY,
2121
property = "type",
2222
defaultImpl = UnknownEvent.class)
2323
// This interface CANNOT permit anything other than these two.

matrix-sdk-core/src/main/java/io/github/hikingc/matrixsdk/api/events/matrix/room/RoomMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.github.hikingc.matrixsdk.api.events.matrix.room.message.*;
77

88
/// Interface that enforces fields required by all `m.room.message` content events.
9-
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "msgtype")
9+
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "msgtype")
1010
public sealed interface RoomMessage extends MessageEventContent
1111
permits AudioContent,
1212
EmoteContent,

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>tools.jackson.core</groupId>
5050
<artifactId>jackson-databind</artifactId>
51-
<version>3.1.5</version>
51+
<version>3.2.2</version>
5252
<scope>compile</scope>
5353
</dependency>
5454

0 commit comments

Comments
 (0)