Skip to content

Commit 19a6c0b

Browse files
committed
Fix javadoc
1 parent edc5f0a commit 19a6c0b

7 files changed

+0
-71
lines changed

spec/src/main/java/io/a2a/json/JsonUtil.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,8 @@ public static <T> T fromJson(String json, Type type) throws JsonProcessingExcept
131131
*
132132
* @param data the object to serialize
133133
* @return JSON string representation of the object
134-
*/
135-
/**
136-
137-
* Converts object to JSON string.
138-
139-
*
140-
141-
* @param data the object to convert
142-
143-
* @return JSON string representation
144-
145134
* @throws JsonProcessingException if conversion fails
146-
147135
*/
148-
149136
public static String toJson(Object data) throws JsonProcessingException {
150137
try {
151138
return OBJECT_MAPPER.toJson(data);

spec/src/main/java/io/a2a/spec/CancelTaskRequest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
public final class CancelTaskRequest extends NonStreamingJSONRPCRequest<TaskIdParams> {
2323

2424
/** The JSON-RPC method name for canceling tasks. */
25-
/** The JSON-RPC method name. */
26-
2725
public static final String METHOD = "CancelTask";
2826

2927
/**
@@ -64,12 +62,6 @@ public static Builder builder() {
6462
* Provides a fluent API for setting request parameters. If no id is provided,
6563
* a random UUID will be generated when {@link #build()} is called.
6664
*/
67-
/**
68-
69-
* Builder for constructing instances.
70-
71-
*/
72-
7365
public static class Builder {
7466
private String jsonrpc;
7567
private Object id;

spec/src/main/java/io/a2a/spec/DeleteTaskPushNotificationConfigRequest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
public final class DeleteTaskPushNotificationConfigRequest extends NonStreamingJSONRPCRequest<DeleteTaskPushNotificationConfigParams> {
1919

2020
/** The JSON-RPC method name for deleting push notification configurations. */
21-
/** The JSON-RPC method name. */
22-
2321
public static final String METHOD = "DeleteTaskPushNotificationConfig";
2422

2523
/**
@@ -60,12 +58,6 @@ public static Builder builder() {
6058
* Provides a fluent API for setting request parameters. If no id is provided,
6159
* a random UUID will be generated when {@link #build()} is called.
6260
*/
63-
/**
64-
65-
* Builder for constructing instances.
66-
67-
*/
68-
6961
public static class Builder {
7062
private String jsonrpc;
7163
private Object id;

spec/src/main/java/io/a2a/spec/GetAuthenticatedExtendedCardRequest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,8 @@ public static Builder builder() {
6060
}
6161

6262
/**
63-
64-
6563
* Builder for constructing instances.
66-
67-
6864
*/
69-
70-
7165
public static class Builder {
7266
private String jsonrpc;
7367
private Object id;

spec/src/main/java/io/a2a/spec/GetAuthenticatedExtendedCardResponse.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,13 @@
1919
public final class GetAuthenticatedExtendedCardResponse extends JSONRPCResponse<AgentCard> {
2020

2121
/**
22-
23-
2422
* Constructs response with full parameters.
25-
26-
2723
*
28-
29-
3024
* @param jsonrpc the JSON-RPC version
31-
32-
3325
* @param id the request ID
34-
35-
3626
* @param result the agent card result
37-
38-
3927
* @param error the error if any
40-
41-
4228
*/
43-
44-
4529
public GetAuthenticatedExtendedCardResponse(String jsonrpc, Object id, AgentCard result, JSONRPCError error) {
4630
super(jsonrpc, id, result, error, AgentCard.class);
4731
}

spec/src/main/java/io/a2a/spec/GetTaskPushNotificationConfigRequest.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,6 @@ public static class Builder {
8686
private Builder() {
8787
}
8888

89-
/**
90-
91-
92-
* Sets the JSON-RPC version.
93-
94-
95-
*
96-
97-
98-
* @param jsonrpc the JSON-RPC version
99-
100-
101-
* @return this builder for method chaining
102-
103-
104-
*/
105-
106-
10789
/**
10890
* Sets the jsonrpc.
10991
*

spec/src/main/java/io/a2a/spec/SendMessageRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public final class SendMessageRequest extends NonStreamingJSONRPCRequest<Message
3232
/**
3333
* The JSON-RPC method name for sending a message: "SendMessage".
3434
*/
35-
/** The JSON-RPC method name. */
36-
3735
public static final String METHOD = "SendMessage";
3836

3937
/**

0 commit comments

Comments
 (0)