Skip to content

Commit 2a75e6b

Browse files
chore: Add Jspecify NullCheck in tck module #336 (#340)
…y @nullable annotation to AgentCardProducer, getEnvOrDefault Method and AgentExecutorProducer execute Method. Fixes #336 # Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [x] Appropriate READMEs were updated (if necessary) Fixes #336 🦕
1 parent eb732ad commit 2a75e6b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tck/src/main/java/io/a2a/tck/server/AgentExecutorProducer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import io.a2a.spec.JSONRPCError;
1212
import io.a2a.spec.Task;
1313
import io.a2a.spec.TaskNotCancelableError;
14-
import io.a2a.spec.TaskNotFoundError;
1514
import io.a2a.spec.TaskState;
1615
import io.a2a.spec.TaskStatus;
1716
import io.a2a.spec.TaskStatusUpdateEvent;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+

0 commit comments

Comments
 (0)