Skip to content

Commit ebe1b9c

Browse files
committed
Fix javadoc
1 parent edc5f0a commit ebe1b9c

21 files changed

+0
-435
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 & 52 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;
@@ -87,17 +79,6 @@ private Builder() {
8779
* @param jsonrpc the JSON-RPC version (optional, defaults to "2.0")
8880
* @return this builder for method chaining
8981
*/
90-
/**
91-
92-
* Sets the JSON-RPC version.
93-
94-
*
95-
96-
* @param jsonrpc the JSON-RPC version
97-
98-
* @return this builder for method chaining
99-
100-
*/
10182

10283
public CancelTaskRequest.Builder jsonrpc(String jsonrpc) {
10384
this.jsonrpc = jsonrpc;
@@ -110,18 +91,6 @@ public CancelTaskRequest.Builder jsonrpc(String jsonrpc) {
11091
* @param id the request identifier (string, integer, or null; if null, a UUID will be generated)
11192
* @return this builder for method chaining
11293
*/
113-
/**
114-
115-
* Sets the request ID.
116-
117-
*
118-
119-
* @param id the request ID
120-
121-
* @return this builder for method chaining
122-
123-
*/
124-
12594
public CancelTaskRequest.Builder id(Object id) {
12695
this.id = id;
12796
return this;
@@ -133,17 +102,6 @@ public CancelTaskRequest.Builder id(Object id) {
133102
* @param params the request parameters (required)
134103
* @return this builder for method chaining
135104
*/
136-
/**
137-
138-
* Sets the request parameters.
139-
140-
*
141-
142-
* @param params the request parameters
143-
144-
* @return this builder for method chaining
145-
146-
*/
147105

148106
public CancelTaskRequest.Builder params(TaskIdParams params) {
149107
this.params = params;
@@ -158,16 +116,6 @@ public CancelTaskRequest.Builder params(TaskIdParams params) {
158116
* @return a new CancelTaskRequest instance
159117
* @throws IllegalArgumentException if validation fails (invalid method, null params, invalid id type)
160118
*/
161-
/**
162-
163-
* Builds the instance.
164-
165-
*
166-
167-
* @return a new instance
168-
169-
*/
170-
171119
public CancelTaskRequest build() {
172120
if (id == null) {
173121
id = UUID.randomUUID().toString();

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

Lines changed: 0 additions & 18 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;
@@ -118,16 +110,6 @@ public Builder params(DeleteTaskPushNotificationConfigParams params) {
118110
* @return a new DeleteTaskPushNotificationConfigRequest instance
119111
* @throws IllegalArgumentException if validation fails (invalid method, invalid id type)
120112
*/
121-
/**
122-
123-
* Builds the instance.
124-
125-
*
126-
127-
* @return a new instance
128-
129-
*/
130-
131113
public DeleteTaskPushNotificationConfigRequest build() {
132114
if (id == null) {
133115
id = UUID.randomUUID().toString();

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 & 54 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
*
@@ -116,27 +98,9 @@ public GetTaskPushNotificationConfigRequest.Builder jsonrpc(String jsonrpc) {
11698
}
11799

118100
/**
119-
120-
121101
* Sets the request ID.
122-
123-
124102
*
125-
126-
127103
* @param id the request ID
128-
129-
130-
* @return this builder for method chaining
131-
132-
133-
*/
134-
135-
136-
/**
137-
* Sets the id.
138-
*
139-
* @param id the id
140104
* @return this builder for method chaining
141105
*/
142106
public GetTaskPushNotificationConfigRequest.Builder id(Object id) {
@@ -145,27 +109,9 @@ public GetTaskPushNotificationConfigRequest.Builder id(Object id) {
145109
}
146110

147111
/**
148-
149-
150112
* Sets the request parameters.
151-
152-
153113
*
154-
155-
156114
* @param params the request parameters
157-
158-
159-
* @return this builder for method chaining
160-
161-
162-
*/
163-
164-
165-
/**
166-
* Sets the params.
167-
*
168-
* @param params the params
169115
* @return this builder for method chaining
170116
*/
171117
public GetTaskPushNotificationConfigRequest.Builder params(GetTaskPushNotificationConfigParams params) {

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

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

8282
/**
83-
84-
8583
* Builder for constructing instances.
86-
87-
8884
*/
89-
90-
9185
public static class Builder {
9286
private String jsonrpc;
9387
private Object id;
@@ -100,27 +94,9 @@ private Builder() {
10094
}
10195

10296
/**
103-
104-
10597
* Sets the JSON-RPC version.
106-
107-
10898
*
109-
110-
11199
* @param jsonrpc the JSON-RPC version
112-
113-
114-
* @return this builder for method chaining
115-
116-
117-
*/
118-
119-
120-
/**
121-
* Sets the jsonrpc.
122-
*
123-
* @param jsonrpc the jsonrpc
124100
* @return this builder for method chaining
125101
*/
126102
public GetTaskRequest.Builder jsonrpc(String jsonrpc) {
@@ -129,27 +105,9 @@ public GetTaskRequest.Builder jsonrpc(String jsonrpc) {
129105
}
130106

131107
/**
132-
133-
134108
* Sets the request ID.
135-
136-
137109
*
138-
139-
140110
* @param id the request ID
141-
142-
143-
* @return this builder for method chaining
144-
145-
146-
*/
147-
148-
149-
/**
150-
* Sets the id.
151-
*
152-
* @param id the id
153111
* @return this builder for method chaining
154112
*/
155113
public GetTaskRequest.Builder id(Object id) {
@@ -158,27 +116,9 @@ public GetTaskRequest.Builder id(Object id) {
158116
}
159117

160118
/**
161-
162-
163119
* Sets the request parameters.
164-
165-
166120
*
167-
168-
169121
* @param params the request parameters
170-
171-
172-
* @return this builder for method chaining
173-
174-
175-
*/
176-
177-
178-
/**
179-
* Sets the params.
180-
*
181-
* @param params the params
182122
* @return this builder for method chaining
183123
*/
184124
public GetTaskRequest.Builder params(TaskQueryParams params) {

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

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

6969
/**
70-
71-
7270
* Builder for constructing instances.
73-
74-
7571
*/
76-
77-
7872
public static class Builder {
7973
private String jsonrpc;
8074
private Object id;

0 commit comments

Comments
 (0)