Skip to content

Commit ed22f59

Browse files
committed
chore: removing the last traces of Jackson
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
1 parent aaca73f commit ed22f59

3 files changed

Lines changed: 0 additions & 31 deletions

File tree

extras/queue-manager-replicated/core/src/main/java/io/a2a/extras/queuemanager/replicated/core/ReplicatedEventQueueItem.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
package io.a2a.extras.queuemanager.replicated.core;
22

3-
import com.fasterxml.jackson.annotation.JsonGetter;
4-
import com.fasterxml.jackson.annotation.JsonIgnore;
5-
import com.fasterxml.jackson.annotation.JsonInclude;
6-
import com.fasterxml.jackson.annotation.JsonSetter;
7-
83
import io.a2a.server.events.EventQueueItem;
94
import io.a2a.spec.Event;
105
import io.a2a.spec.JSONRPCError;
116
import io.a2a.spec.StreamingEventKind;
127

138
public class ReplicatedEventQueueItem implements EventQueueItem {
149
private String taskId;
15-
16-
@JsonInclude(JsonInclude.Include.NON_NULL)
1710
private StreamingEventKind event;
18-
19-
@JsonInclude(JsonInclude.Include.NON_NULL)
2011
private JSONRPCError error;
2112

2213
private boolean closedEvent;
@@ -72,13 +63,10 @@ public void setTaskId(String taskId) {
7263
* Get the StreamingEventKind event field (for JSON serialization).
7364
* @return the StreamingEventKind event or null
7465
*/
75-
@JsonGetter("event")
76-
@JsonInclude(JsonInclude.Include.NON_NULL)
7766
public StreamingEventKind getStreamingEvent() {
7867
return event;
7968
}
8069

81-
@JsonSetter("event")
8270
public void setEvent(StreamingEventKind event) {
8371
this.event = event;
8472
this.error = null; // Clear error when setting event
@@ -88,13 +76,10 @@ public void setEvent(StreamingEventKind event) {
8876
* Get the JSONRPCError field (for JSON serialization).
8977
* @return the JSONRPCError or null
9078
*/
91-
@JsonGetter("error")
92-
@JsonInclude(JsonInclude.Include.NON_NULL)
9379
public JSONRPCError getErrorObject() {
9480
return error;
9581
}
9682

97-
@JsonSetter("error")
9883
public void setError(JSONRPCError error) {
9984
this.error = error;
10085
this.event = null; // Clear event when setting error
@@ -105,7 +90,6 @@ public void setError(JSONRPCError error) {
10590
* This is the method required by the EventQueueItem interface.
10691
* @return the event (StreamingEventKind, JSONRPCError, or QueueClosedEvent) or null if none is set
10792
*/
108-
@JsonIgnore
10993
@Override
11094
public Event getEvent() {
11195
if (closedEvent) {
@@ -121,7 +105,6 @@ public Event getEvent() {
121105
* Indicates this is a replicated event (implements EventQueueItem).
122106
* @return always true for replicated events
123107
*/
124-
@JsonIgnore
125108
@Override
126109
public boolean isReplicated() {
127110
return true;
@@ -148,7 +131,6 @@ public boolean hasError() {
148131
* For JSON serialization.
149132
* @return true if this is a queue closed event
150133
*/
151-
@JsonGetter("closedEvent")
152134
public boolean isClosedEvent() {
153135
return closedEvent;
154136
}
@@ -157,7 +139,6 @@ public boolean isClosedEvent() {
157139
* Set the closed event flag (for JSON deserialization).
158140
* @param closedEvent true if this is a queue closed event
159141
*/
160-
@JsonSetter("closedEvent")
161142
public void setClosedEvent(boolean closedEvent) {
162143
this.closedEvent = closedEvent;
163144
if (closedEvent) {

server-common/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
<groupId>${project.groupId}</groupId>
3030
<artifactId>a2a-java-sdk-client-transport-jsonrpc</artifactId>
3131
</dependency>
32-
<dependency>
33-
<groupId>com.fasterxml.jackson.core</groupId>
34-
<artifactId>jackson-databind</artifactId>
35-
</dependency>
36-
<dependency>
37-
<groupId>com.fasterxml.jackson.datatype</groupId>
38-
<artifactId>jackson-datatype-jsr310</artifactId>
39-
</dependency>
4032
<dependency>
4133
<groupId>io.smallrye.reactive</groupId>
4234
<artifactId>mutiny-zero</artifactId>

transport/rest/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
<artifactId>mockito-core</artifactId>
5252
<scope>test</scope>
5353
</dependency>
54-
<dependency>
55-
<groupId>com.fasterxml.jackson.datatype</groupId>
56-
<artifactId>jackson-datatype-jsr310</artifactId>
57-
</dependency>
5854
<dependency>
5955
<groupId>com.google.protobuf</groupId>
6056
<artifactId>protobuf-java-util</artifactId>

0 commit comments

Comments
 (0)