Skip to content

Commit bc83780

Browse files
committed
Fix javadoc myself
1 parent a9e41ea commit bc83780

21 files changed

+5
-511
lines changed

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

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

6464
/**
65-
66-
6765
* Builder for constructing GetTaskPushNotificationConfigParams instances.
68-
69-
7066
*/
71-
72-
7367
public static class Builder {
7468
String id;
7569
String pushNotificationConfigId;

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,73 +16,33 @@
1616
public final class GetTaskPushNotificationConfigResponse extends JSONRPCResponse<TaskPushNotificationConfig> {
1717

1818
/**
19-
20-
2119
* Constructs response with full parameters.
22-
23-
2420
*
25-
26-
2721
* @param jsonrpc the JSON-RPC version
28-
29-
3022
* @param id the request ID
31-
32-
3323
* @param result the push notification config result
34-
35-
3624
* @param error the error if any
37-
38-
3925
*/
40-
41-
4226
public GetTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, JSONRPCError error) {
4327
super(jsonrpc, id, result, error, TaskPushNotificationConfig.class);
4428
}
4529

4630
/**
47-
48-
4931
* Constructs error response.
50-
51-
5232
*
53-
54-
5533
* @param id the request ID
56-
57-
5834
* @param error the error
59-
60-
6135
*/
62-
63-
6436
public GetTaskPushNotificationConfigResponse(Object id, JSONRPCError error) {
6537
this(null, id, null, error);
6638
}
6739

6840
/**
69-
70-
7141
* Constructs successful response.
72-
73-
7442
*
75-
76-
7743
* @param id the request ID
78-
79-
8044
* @param result the push notification config result
81-
82-
8345
*/
84-
85-
8646
public GetTaskPushNotificationConfigResponse(Object id, TaskPushNotificationConfig result) {
8747
this(null, id, result, null);
8848
}

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,73 +17,33 @@
1717
public final class GetTaskResponse extends JSONRPCResponse<Task> {
1818

1919
/**
20-
21-
2220
* Constructs response with full parameters.
23-
24-
2521
*
26-
27-
2822
* @param jsonrpc the JSON-RPC version
29-
30-
3123
* @param id the request ID
32-
33-
3424
* @param result the task result
35-
36-
3725
* @param error the error if any
38-
39-
4026
*/
41-
42-
4327
public GetTaskResponse(String jsonrpc, Object id, Task result, JSONRPCError error) {
4428
super(jsonrpc, id, result, error, Task.class);
4529
}
4630

4731
/**
48-
49-
5032
* Constructs error response.
51-
52-
5333
*
54-
55-
5634
* @param id the request ID
57-
58-
5935
* @param error the error
60-
61-
6236
*/
63-
64-
6537
public GetTaskResponse(Object id, JSONRPCError error) {
6638
this(null, id, null, error);
6739
}
6840

6941
/**
70-
71-
7242
* Constructs successful response.
73-
74-
7543
*
76-
77-
7844
* @param id the request ID
79-
80-
8145
* @param result the task result
82-
83-
8446
*/
85-
86-
8747
public GetTaskResponse(Object id, Task result) {
8848
this(null, id, result, null);
8949
}

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

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@
3131
public abstract sealed class JSONRPCRequest<T> implements JSONRPCMessage permits NonStreamingJSONRPCRequest, StreamingJSONRPCRequest {
3232

3333
/** The JSON-RPC protocol version. */
34-
35-
3634
protected String jsonrpc;
37-
/** The request identifier. */
3835

36+
/** The request identifier. */
3937
protected Object id;
40-
/** The method name to invoke. */
4138

39+
/** The method name to invoke. */
4240
protected String method;
43-
/** The method parameters. */
4441

42+
/** The method parameters. */
4543
protected T params;
4644

4745
/**
@@ -85,32 +83,14 @@ public T getParams() {
8583
}
8684

8785
/**
88-
89-
9086
* Validates and sets JSON-RPC parameters.
91-
92-
9387
*
94-
95-
9688
* @param jsonrpc the JSON-RPC version
97-
98-
9989
* @param method the method name
100-
101-
10290
* @param id the request ID
103-
104-
10591
* @param params the parameters
106-
107-
10892
* @param paramsIsRequired whether parameters are required
109-
110-
11193
*/
112-
113-
11494
protected void validateAndSetJsonParameters(String jsonrpc, String method, Object id, T params, boolean paramsIsRequired) {
11595
this.jsonrpc = Utils.defaultIfNull(jsonrpc, JSONRPC_VERSION);
11696
if (!JSONRPC_VERSION.equals(this.jsonrpc)) {

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

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,58 +12,29 @@
1212
public abstract sealed class JSONRPCResponse<T> implements JSONRPCMessage permits CancelTaskResponse, DeleteTaskPushNotificationConfigResponse, GetAuthenticatedExtendedCardResponse, GetTaskPushNotificationConfigResponse, GetTaskResponse, JSONRPCErrorResponse, ListTaskPushNotificationConfigResponse, ListTasksResponse, SendMessageResponse, SendStreamingMessageResponse, SetTaskPushNotificationConfigResponse {
1313

1414
/** The JSON-RPC protocol version. */
15-
16-
1715
protected String jsonrpc;
1816
/** The request identifier this response corresponds to. */
19-
2017
protected Object id;
2118
/** The result of the method invocation. */
22-
2319
protected T result;
2420
/** The error object if the invocation failed. */
25-
2621
protected JSONRPCError error;
2722

2823
/**
29-
30-
3124
* Default constructor for deserialization.
32-
33-
3425
*/
35-
36-
3726
public JSONRPCResponse() {
3827
}
3928

4029
/**
41-
42-
4330
* Constructs a JSON-RPC response.
44-
45-
4631
*
47-
48-
4932
* @param jsonrpc the JSON-RPC version
50-
51-
5233
* @param id the request ID
53-
54-
5534
* @param result the result value
56-
57-
5835
* @param error the error if any
59-
60-
6136
* @param resultType the result type class
62-
63-
6437
*/
65-
66-
6738
public JSONRPCResponse(String jsonrpc, Object id, T result, JSONRPCError error, Class<T> resultType) {
6839
if (jsonrpc != null && ! jsonrpc.equals(JSONRPC_VERSION)) {
6940
throw new IllegalArgumentException("Invalid JSON-RPC protocol version");
@@ -92,39 +63,19 @@ public Object getId() {
9263
}
9364

9465
/**
95-
96-
9766
* Gets the result value.
98-
99-
10067
*
101-
102-
10368
* @return the result
104-
105-
10669
*/
107-
108-
10970
public T getResult() {
11071
return this.result;
11172
}
11273

11374
/**
114-
115-
11675
* Gets the error object.
117-
118-
11976
*
120-
121-
12277
* @return the error if any
123-
124-
12578
*/
126-
127-
12879
public JSONRPCError getError() {
12980
return this.error;
13081
}

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,15 @@
1818
public final class ListTaskPushNotificationConfigRequest extends NonStreamingJSONRPCRequest<ListTaskPushNotificationConfigParams> {
1919

2020
/** The JSON-RPC method name. */
21-
22-
2321
public static final String METHOD = "ListTaskPushNotificationConfig";
2422

2523
/**
26-
27-
2824
* Constructs request with all parameters.
29-
30-
3125
*
32-
33-
3426
* @param jsonrpc the JSON-RPC version
35-
36-
3727
* @param id the request ID
38-
39-
4028
* @param params the request parameters
41-
42-
4329
*/
44-
45-
4630
public ListTaskPushNotificationConfigRequest(String jsonrpc, Object id, ListTaskPushNotificationConfigParams params) {
4731
super(jsonrpc, METHOD, id, params);
4832
}
@@ -114,20 +98,10 @@ public Builder params(ListTaskPushNotificationConfigParams params) {
11498
}
11599

116100
/**
117-
118-
119101
* Builds the instance.
120-
121-
122102
*
123-
124-
125103
* @return a new instance
126-
127-
128104
*/
129-
130-
131105
public ListTaskPushNotificationConfigRequest build() {
132106
if (id == null) {
133107
id = UUID.randomUUID().toString();

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,11 @@ public ListTaskPushNotificationConfigResponse(String jsonrpc, Object id, List<Ta
2929
}
3030

3131
/**
32-
33-
3432
* Constructs error response.
35-
36-
3733
*
38-
39-
4034
* @param id the request ID
41-
42-
4335
* @param error the error
44-
45-
4636
*/
47-
48-
4937
public ListTaskPushNotificationConfigResponse(Object id, JSONRPCError error) {
5038
this(null, id, null, error);
5139
}

0 commit comments

Comments
 (0)