Skip to content

Commit a9e41ea

Browse files
committed
Fix: Javadoc formatting in spec classes
Removed excessive newlines from Javadoc comments in several classes in the io.a2a.spec package, and corrected a misplaced @param tag in SubscribeToTaskRequest.
1 parent 5e819d8 commit a9e41ea

7 files changed

+0
-282
lines changed

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

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -73,66 +73,32 @@ private Builder() {
7373
}
7474

7575
/**
76-
77-
7876
* Sets the JSON-RPC version.
79-
80-
8177
*
82-
83-
8478
* @param jsonrpc the JSON-RPC version
85-
86-
8779
* @return this builder for method chaining
88-
89-
9080
*/
91-
92-
9381
public GetAuthenticatedExtendedCardRequest.Builder jsonrpc(String jsonrpc) {
9482
this.jsonrpc = jsonrpc;
9583
return this;
9684
}
9785

9886
/**
99-
100-
10187
* Sets the request ID.
102-
103-
10488
*
105-
106-
10789
* @param id the request ID
108-
109-
11090
* @return this builder for method chaining
111-
112-
11391
*/
114-
115-
11692
public GetAuthenticatedExtendedCardRequest.Builder id(Object id) {
11793
this.id = id;
11894
return this;
11995
}
12096

12197
/**
122-
123-
12498
* Builds the instance.
125-
126-
12799
*
128-
129-
130100
* @return a new instance
131-
132-
133101
*/
134-
135-
136102
public GetAuthenticatedExtendedCardRequest build() {
137103
if (id == null) {
138104
id = UUID.randomUUID().toString();

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,21 @@ public GetAuthenticatedExtendedCardResponse(String jsonrpc, Object id, AgentCard
3131
}
3232

3333
/**
34-
35-
3634
* Constructs error response.
37-
38-
3935
*
40-
41-
4236
* @param id the request ID
43-
44-
4537
* @param error the error
46-
47-
4838
*/
49-
50-
5139
public GetAuthenticatedExtendedCardResponse(Object id, JSONRPCError error) {
5240
this(null, id, null, error);
5341
}
5442

5543
/**
56-
57-
5844
* Constructs successful response.
59-
60-
6145
*
62-
63-
6446
* @param id the request ID
65-
66-
6747
* @param result the agent card result
68-
69-
7048
*/
71-
72-
7349
public GetAuthenticatedExtendedCardResponse(Object id, AgentCard result) {
7450
this(null, id, result, null);
7551
}

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

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -82,89 +82,43 @@ private Builder() {
8282
}
8383

8484
/**
85-
86-
8785
* Sets the task ID.
88-
89-
9086
*
91-
92-
9387
* @param id the task ID
94-
95-
9688
* @return this builder for method chaining
97-
98-
9989
*/
100-
101-
10290
public Builder id(String id) {
10391
this.id = id;
10492
return this;
10593
}
10694

10795
/**
108-
109-
11096
* Sets the push notification configuration ID.
111-
112-
11397
*
114-
115-
11698
* @param pushNotificationConfigId the configuration ID
117-
118-
11999
* @return this builder for method chaining
120-
121-
122100
*/
123-
124-
125101
public Builder pushNotificationConfigId(String pushNotificationConfigId) {
126102
this.pushNotificationConfigId = pushNotificationConfigId;
127103
return this;
128104
}
129105

130106
/**
131-
132-
133107
* Sets the tenant.
134-
135-
136108
*
137-
138-
139109
* @param tenant the tenant
140-
141-
142110
* @return this builder for method chaining
143-
144-
145111
*/
146-
147-
148112
public Builder tenant(String tenant) {
149113
this.tenant = tenant;
150114
return this;
151115
}
152116

153117
/**
154-
155-
156118
* Builds the parameters instance.
157-
158-
159119
*
160-
161-
162120
* @return a new GetTaskPushNotificationConfigParams
163-
164-
165121
*/
166-
167-
168122
public GetTaskPushNotificationConfigParams build() {
169123
return new GetTaskPushNotificationConfigParams(id, pushNotificationConfigId, tenant == null ? "" : tenant);
170124
}

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

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

2020
/** The JSON-RPC method name. */
21-
22-
2321
public static final String METHOD = "GetTaskPushNotificationConfig";
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 GetTaskPushNotificationConfigRequest(String jsonrpc, Object id, GetTaskPushNotificationConfigParams params) {
4731
super(jsonrpc, METHOD, id, params);
4832
}
@@ -67,14 +51,8 @@ public static Builder builder() {
6751
}
6852

6953
/**
70-
71-
7254
* Builder for constructing instances.
73-
74-
7555
*/
76-
77-
7856
public static class Builder {
7957
private String jsonrpc;
8058
private Object id;
@@ -120,20 +98,10 @@ public GetTaskPushNotificationConfigRequest.Builder params(GetTaskPushNotificati
12098
}
12199

122100
/**
123-
124-
125101
* Builds the instance.
126-
127-
128102
*
129-
130-
131103
* @return a new instance
132-
133-
134104
*/
135-
136-
137105
public GetTaskPushNotificationConfigRequest build() {
138106
if (id == null) {
139107
id = UUID.randomUUID().toString();

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,53 +19,25 @@
1919
public final class GetTaskRequest extends NonStreamingJSONRPCRequest<TaskQueryParams> {
2020

2121
/** The JSON-RPC method name. */
22-
23-
2422
public static final String METHOD = "GetTask";
2523

2624
/**
27-
28-
2925
* Constructs request with all parameters.
30-
31-
3226
*
33-
34-
3527
* @param jsonrpc the JSON-RPC version
36-
37-
3828
* @param id the request ID
39-
40-
4129
* @param params the request parameters
42-
43-
4430
*/
45-
46-
4731
public GetTaskRequest(String jsonrpc, Object id, TaskQueryParams params) {
4832
super(jsonrpc, METHOD, id, params);
4933
}
5034

5135
/**
52-
53-
5436
* Constructs request with ID and parameters.
55-
56-
5737
*
58-
59-
6038
* @param id the request ID
61-
62-
6339
* @param params the request parameters
64-
65-
6640
*/
67-
68-
6941
public GetTaskRequest(Object id, TaskQueryParams params) {
7042
this(null, id, params);
7143
}
@@ -127,20 +99,10 @@ public GetTaskRequest.Builder params(TaskQueryParams params) {
12799
}
128100

129101
/**
130-
131-
132102
* Builds the instance.
133-
134-
135103
*
136-
137-
138104
* @return a new instance
139-
140-
141105
*/
142-
143-
144106
public GetTaskRequest build() {
145107
if (id == null) {
146108
id = UUID.randomUUID().toString();

0 commit comments

Comments
 (0)