Skip to content

Commit 141b800

Browse files
committed
Fix spotless check
1 parent 3446c36 commit 141b800

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

java/src/main/java/com/github/copilot/CopilotSession.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -907,11 +907,11 @@ private void handleBroadcastEventAsync(SessionEvent event) {
907907

908908
/**
909909
* Populates the invocation's available-tools snapshot when it targets the
910-
* built-in tool-search tool, so an override can filter the live catalog
911-
* without issuing its own RPC. The snapshot is fetched only for that tool to
912-
* avoid a round-trip on every ordinary tool call; a failed fetch leaves the
913-
* snapshot {@code null} rather than failing the tool. Shared by both
914-
* server-to-client tool dispatch paths ({@link RpcHandlerDispatcher} and
910+
* built-in tool-search tool, so an override can filter the live catalog without
911+
* issuing its own RPC. The snapshot is fetched only for that tool to avoid a
912+
* round-trip on every ordinary tool call; a failed fetch leaves the snapshot
913+
* {@code null} rather than failing the tool. Shared by both server-to-client
914+
* tool dispatch paths ({@link RpcHandlerDispatcher} and
915915
* {@link #executeToolAndRespondAsync}).
916916
*
917917
* @param toolName

java/src/main/java/com/github/copilot/rpc/ToolResultObject.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public record ToolResultObject(@JsonProperty("resultType") String resultType,
6363
/**
6464
* Creates a result without tool references.
6565
* <p>
66-
* Provided for source and binary compatibility with callers written or
67-
* compiled before the {@code toolReferences} component was added. Delegates to
68-
* the canonical constructor with {@code toolReferences} set to {@code null}.
66+
* Provided for source and binary compatibility with callers written or compiled
67+
* before the {@code toolReferences} component was added. Delegates to the
68+
* canonical constructor with {@code toolReferences} set to {@code null}.
6969
*
7070
* @param resultType
7171
* the result type ("success" or "error"), defaults to "success"

java/src/test/java/com/github/copilot/ToolResultObjectSerializationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
/**
1919
* Verifies JSON (de)serialization of the {@code toolReferences} field on
20-
* {@link ToolResultObject}, including that it is omitted when {@code null}
21-
* (via {@code @JsonInclude(NON_NULL)}) and preserved by the backward-compatible
20+
* {@link ToolResultObject}, including that it is omitted when {@code null} (via
21+
* {@code @JsonInclude(NON_NULL)}) and preserved by the backward-compatible
2222
* six-argument constructor.
2323
*/
2424
class ToolResultObjectSerializationTest {

0 commit comments

Comments
 (0)