Skip to content

Commit 72215c7

Browse files
Copilotbrunoborges
andcommitted
Fix SpotBugs REC_CATCH_EXCEPTION: narrow exception catch in JsonRpcClient.handleMessage()
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent 2a2366a commit 72215c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ else if (node.has("method")) {
306306
}
307307
}
308308
}
309-
} catch (Exception e) {
309+
} catch (JsonProcessingException e) {
310310
LOG.log(Level.SEVERE, "Error parsing JSON-RPC message", e);
311311
}
312312
}

0 commit comments

Comments
 (0)