Skip to content

Commit 6e1c600

Browse files
committed
Satisfy my Gemini overlord
1 parent 2eb6621 commit 6e1c600

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class ReplicatedQueueManager implements QueueManager {
3333

3434
/**
3535
* No-args constructor for CDI proxy creation.
36+
* CDI requires a non-private constructor to create proxies for @ApplicationScoped beans.
37+
* All fields are initialized by the @Inject constructor during actual bean creation.
3638
*/
3739
@SuppressWarnings("NullAway")
3840
protected ReplicatedQueueManager() {

server-common/src/main/java/io/a2a/server/events/InMemoryQueueManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public class InMemoryQueueManager implements QueueManager {
2424

2525
/**
2626
* No-args constructor for CDI proxy creation.
27+
* CDI requires a non-private constructor to create proxies for @ApplicationScoped beans.
28+
* All fields are initialized by the @Inject constructor during actual bean creation.
2729
*/
2830
@SuppressWarnings("NullAway")
2931
protected InMemoryQueueManager() {

server-common/src/main/java/io/a2a/server/tasks/BasePushNotificationSender.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ public class BasePushNotificationSender implements PushNotificationSender {
3333
private A2AHttpClient httpClient;
3434
private PushNotificationConfigStore configStore;
3535

36+
3637
/**
3738
* No-args constructor for CDI proxy creation.
39+
* CDI requires a non-private constructor to create proxies for @ApplicationScoped beans.
40+
* All fields are initialized by the @Inject constructor during actual bean creation.
3841
*/
3942
@SuppressWarnings("NullAway")
4043
protected BasePushNotificationSender() {

transport/jsonrpc/src/main/java/io/a2a/transport/jsonrpc/handler/JSONRPCHandler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public class JSONRPCHandler {
6868
private RequestHandler requestHandler;
6969
private Executor executor;
7070

71+
/**
72+
* No-args constructor for CDI proxy creation.
73+
* CDI requires a non-private constructor to create proxies for @ApplicationScoped beans.
74+
* All fields are initialized by the @Inject constructor during actual bean creation.
75+
*/
7176
@SuppressWarnings("NullAway")
7277
protected JSONRPCHandler() {
7378
// For CDI proxy creation

transport/rest/src/main/java/io/a2a/transport/rest/handler/RestHandler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ public class RestHandler {
7676
private RequestHandler requestHandler;
7777
private Executor executor;
7878

79+
/**
80+
* No-args constructor for CDI proxy creation.
81+
* CDI requires a non-private constructor to create proxies for @ApplicationScoped beans.
82+
* All fields are initialized by the @Inject constructor during actual bean creation.
83+
*/
7984
@SuppressWarnings("NullAway")
8085
protected RestHandler() {
8186
// For CDI

0 commit comments

Comments
 (0)