Skip to content

Commit 222f4e1

Browse files
Copilotbrunoborges
andcommitted
Make CopilotClient final to prevent Finalizer attacks
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent f6e6292 commit 222f4e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/github/copilot/sdk/CopilotClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
*
8080
* @since 1.0.0
8181
*/
82-
public class CopilotClient implements AutoCloseable {
82+
public final class CopilotClient implements AutoCloseable {
8383

8484
private static final Logger LOG = Logger.getLogger(CopilotClient.class.getName());
8585
private static final ObjectMapper MAPPER = JsonRpcClient.getObjectMapper();

0 commit comments

Comments
 (0)