Skip to content

Commit deca3b0

Browse files
committed
Fix Gemini comments
1 parent 26d7855 commit deca3b0

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ExtendedCardNotConfiguredError(
4242
Object data) {
4343
super(
4444
defaultIfNull(code, EXTENDED_CARD_NOT_CONFIGURED_ERROR_CODE),
45-
defaultIfNull(message, "Authenticated Extended Card not configured"),
45+
defaultIfNull(message, "Extended Card not configured"),
4646
data,
4747
"https://a2a-protocol.org/errors/extended-agent-card-not-configured");
4848
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.a2a.spec;
22

3-
import static io.a2a.spec.A2AErrorCodes.EXTENDED_CARD_NOT_CONFIGURED_ERROR_CODE;
43
import static io.a2a.spec.A2AErrorCodes.EXTENSION_SUPPORT_REQUIRED_ERROR;
54
import static io.a2a.util.Utils.defaultIfNull;
65

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.a2a.spec;
22

3-
import static io.a2a.spec.A2AErrorCodes.EXTENSION_SUPPORT_REQUIRED_ERROR;
43
import static io.a2a.spec.A2AErrorCodes.VERSION_NOT_SUPPORTED_ERROR_CODE;
54
import static io.a2a.util.Utils.defaultIfNull;
65

transport/jsonrpc/src/main/java/io/a2a/transport/jsonrpc/handler/JSONRPCHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public GetAuthenticatedExtendedCardResponse onGetAuthenticatedExtendedCardReques
249249
GetAuthenticatedExtendedCardRequest request, ServerCallContext context) {
250250
if (!agentCard.supportsExtendedAgentCard() || extendedAgentCard == null || !extendedAgentCard.isResolvable()) {
251251
return new GetAuthenticatedExtendedCardResponse(request.getId(),
252-
new ExtendedCardNotConfiguredError(null, "Authenticated Extended Card not configured", null));
252+
new ExtendedCardNotConfiguredError(null, "Extended Card not configured", null));
253253
}
254254
try {
255255
return new GetAuthenticatedExtendedCardResponse(request.getId(), extendedAgentCard.get());

transport/rest/src/main/java/io/a2a/transport/rest/handler/RestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private int mapErrorToHttpStatus(A2AError error) {
419419
public HTTPRestResponse getExtendedAgentCard(String tenant) {
420420
try {
421421
if (!agentCard.supportsExtendedAgentCard() || extendedAgentCard == null || !extendedAgentCard.isResolvable()) {
422-
throw new ExtendedCardNotConfiguredError(null, "Authenticated Extended Card not configured", null);
422+
throw new ExtendedCardNotConfiguredError(null, "Extended Card not configured", null);
423423
}
424424
return new HTTPRestResponse(200, "application/json", JsonUtil.toJson(extendedAgentCard.get()));
425425
} catch (A2AError e) {

0 commit comments

Comments
 (0)