File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
tck/src/main/java/io/a2a/tck/server Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1212import io .a2a .spec .AgentInterface ;
1313import io .a2a .spec .AgentSkill ;
1414import io .a2a .spec .TransportProtocol ;
15+ import org .jspecify .annotations .Nullable ;
1516
1617@ ApplicationScoped
1718public class AgentCardProducer {
@@ -53,7 +54,7 @@ public AgentCard agentCard() {
5354 .build ();
5455 }
5556
56- private static String getEnvOrDefault (String envVar , String defaultValue ) {
57+ private static String getEnvOrDefault (@ Nullable String envVar , String defaultValue ) {
5758 String value = System .getenv (envVar );
5859 return value == null || value .isBlank () ? defaultValue : value ;
5960 }
Original file line number Diff line number Diff line change 44import jakarta .enterprise .context .ApplicationScoped ;
55import jakarta .enterprise .inject .Produces ;
66
7+ import org .jspecify .annotations .Nullable ;
8+
79import io .a2a .server .agentexecution .AgentExecutor ;
810import io .a2a .server .agentexecution .RequestContext ;
911import io .a2a .server .events .EventQueue ;
@@ -26,7 +28,7 @@ public AgentExecutor agentExecutor() {
2628
2729 private static class FireAndForgetAgentExecutor implements AgentExecutor {
2830 @ Override
29- public void execute (RequestContext context , EventQueue eventQueue ) throws JSONRPCError {
31+ public void execute (@ Nullable RequestContext context , EventQueue eventQueue ) throws JSONRPCError {
3032 Task task = context .getTask ();
3133
3234 if (task == null ) {
Original file line number Diff line number Diff line change 1+ @ NullMarked
2+ package io .a2a .tck .server ;
3+
4+ import org .jspecify .annotations .NullMarked ;
5+
6+ //The following had @Nullable annotation applied from JSpecify
7+ //AgentCardProducer.java getEnvOrDefault method,
8+ //AgentExecutorProducer.java execute method
9+ //
10+
You can’t perform that action at this time.
0 commit comments