SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.8
Threshold is medium
Effort is default
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 494 |
51 |
0 |
0 |
com.github.copilot.sdk.generated.rpc.AccountGetQuotaResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.AccountGetQuotaResult.quotaSnapshots() may expose internal representation by returning AccountGetQuotaResult.quotaSnapshots |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.AccountGetQuotaResult(Map) may expose internal representation by storing an externally mutable object into AccountGetQuotaResult.quotaSnapshots |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.McpConfigListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.McpConfigListResult.servers() may expose internal representation by returning McpConfigListResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.McpConfigListResult(Map) may expose internal representation by storing an externally mutable object into McpConfigListResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.McpDiscoverResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.McpDiscoverResult.servers() may expose internal representation by returning McpDiscoverResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.McpDiscoverResult(List) may expose internal representation by storing an externally mutable object into McpDiscoverResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.ModelsListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.ModelsListResult.models() may expose internal representation by returning ModelsListResult.models |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.ModelsListResult(List) may expose internal representation by storing an externally mutable object into ModelsListResult.models |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem.supportedReasoningEfforts() may expose internal representation by returning ModelsListResult$ModelsListResultModelsItem.supportedReasoningEfforts |
MALICIOUS_CODE |
EI_EXPOSE_REP |
29 |
Medium |
| new com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem(String, String, ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities, ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemPolicy, ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemBilling, List, String) may expose internal representation by storing an externally mutable object into ModelsListResult$ModelsListResultModelsItem.supportedReasoningEfforts |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities$ModelsListResultModelsItemCapabilitiesLimits$ModelsListResultModelsItemCapabilitiesLimitsVision
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities$ModelsListResultModelsItemCapabilitiesLimits$ModelsListResultModelsItemCapabilitiesLimitsVision.supportedMediaTypes() may expose internal representation by returning ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities$ModelsListResultModelsItemCapabilitiesLimits$ModelsListResultModelsItemCapabilitiesLimitsVision.supportedMediaTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
84 |
Medium |
| new com.github.copilot.sdk.generated.rpc.ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities$ModelsListResultModelsItemCapabilitiesLimits$ModelsListResultModelsItemCapabilitiesLimitsVision(List, Double, Double) may expose internal representation by storing an externally mutable object into ModelsListResult$ModelsListResultModelsItem$ModelsListResultModelsItemCapabilities$ModelsListResultModelsItemCapabilitiesLimits$ModelsListResultModelsItemCapabilitiesLimitsVision.supportedMediaTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
86 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionAgentListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionAgentListResult.agents() may expose internal representation by returning SessionAgentListResult.agents |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionAgentListResult(List) may expose internal representation by storing an externally mutable object into SessionAgentListResult.agents |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionAgentReloadResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionAgentReloadResult.agents() may expose internal representation by returning SessionAgentReloadResult.agents |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionAgentReloadResult(List) may expose internal representation by storing an externally mutable object into SessionAgentReloadResult.agents |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionExtensionsListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionExtensionsListResult.extensions() may expose internal representation by returning SessionExtensionsListResult.extensions |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionExtensionsListResult(List) may expose internal representation by storing an externally mutable object into SessionExtensionsListResult.extensions |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionFsReaddirResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionFsReaddirResult.entries() may expose internal representation by returning SessionFsReaddirResult.entries |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionFsReaddirResult(List) may expose internal representation by storing an externally mutable object into SessionFsReaddirResult.entries |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionFsReaddirWithTypesResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionFsReaddirWithTypesResult.entries() may expose internal representation by returning SessionFsReaddirWithTypesResult.entries |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionFsReaddirWithTypesResult(List) may expose internal representation by storing an externally mutable object into SessionFsReaddirWithTypesResult.entries |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionMcpListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionMcpListResult.servers() may expose internal representation by returning SessionMcpListResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionMcpListResult(List) may expose internal representation by storing an externally mutable object into SessionMcpListResult.servers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionModelSwitchToParams$SessionModelSwitchToParamsModelCapabilities$SessionModelSwitchToParamsModelCapabilitiesLimits$SessionModelSwitchToParamsModelCapabilitiesLimitsVision
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionModelSwitchToParams$SessionModelSwitchToParamsModelCapabilities$SessionModelSwitchToParamsModelCapabilitiesLimits$SessionModelSwitchToParamsModelCapabilitiesLimitsVision.supportedMediaTypes() may expose internal representation by returning SessionModelSwitchToParams$SessionModelSwitchToParamsModelCapabilities$SessionModelSwitchToParamsModelCapabilitiesLimits$SessionModelSwitchToParamsModelCapabilitiesLimitsVision.supportedMediaTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
65 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionModelSwitchToParams$SessionModelSwitchToParamsModelCapabilities$SessionModelSwitchToParamsModelCapabilitiesLimits$SessionModelSwitchToParamsModelCapabilitiesLimitsVision(List, Double, Double) may expose internal representation by storing an externally mutable object into SessionModelSwitchToParams$SessionModelSwitchToParamsModelCapabilities$SessionModelSwitchToParamsModelCapabilitiesLimits$SessionModelSwitchToParamsModelCapabilitiesLimitsVision.supportedMediaTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
67 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionPluginsListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionPluginsListResult.plugins() may expose internal representation by returning SessionPluginsListResult.plugins |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionPluginsListResult(List) may expose internal representation by storing an externally mutable object into SessionPluginsListResult.plugins |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionSkillsListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionSkillsListResult.skills() may expose internal representation by returning SessionSkillsListResult.skills |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionSkillsListResult(List) may expose internal representation by storing an externally mutable object into SessionSkillsListResult.skills |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.properties() may expose internal representation by returning SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.properties |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
| com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.required() may expose internal representation by returning SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.required |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema(String, Map, List) may expose internal representation by storing an externally mutable object into SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.properties |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
37 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema(String, Map, List) may expose internal representation by storing an externally mutable object into SessionUiElicitationParams$SessionUiElicitationParamsRequestedSchema.required |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
37 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionUiElicitationResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionUiElicitationResult.content() may expose internal representation by returning SessionUiElicitationResult.content |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionUiElicitationResult(SessionUiElicitationResult$SessionUiElicitationResultAction, Map) may expose internal representation by storing an externally mutable object into SessionUiElicitationResult.content |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult.content() may expose internal representation by returning SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult.content |
MALICIOUS_CODE |
EI_EXPOSE_REP |
34 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult(SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult$SessionUiHandlePendingElicitationParamsResultAction, Map) may expose internal representation by storing an externally mutable object into SessionUiHandlePendingElicitationParams$SessionUiHandlePendingElicitationParamsResult.content |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionUsageGetMetricsResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionUsageGetMetricsResult.modelMetrics() may expose internal representation by returning SessionUsageGetMetricsResult.modelMetrics |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionUsageGetMetricsResult(Double, Long, Double, Long, SessionUsageGetMetricsResult$SessionUsageGetMetricsResultCodeChanges, Map, String, Long, Long) may expose internal representation by storing an externally mutable object into SessionUsageGetMetricsResult.modelMetrics |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.SessionWorkspaceListFilesResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.SessionWorkspaceListFilesResult.files() may expose internal representation by returning SessionWorkspaceListFilesResult.files |
MALICIOUS_CODE |
EI_EXPOSE_REP |
21 |
Medium |
| new com.github.copilot.sdk.generated.rpc.SessionWorkspaceListFilesResult(List) may expose internal representation by storing an externally mutable object into SessionWorkspaceListFilesResult.files |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
24 |
Medium |
com.github.copilot.sdk.generated.rpc.ToolsListResult
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.ToolsListResult.tools() may expose internal representation by returning ToolsListResult.tools |
MALICIOUS_CODE |
EI_EXPOSE_REP |
22 |
Medium |
| new com.github.copilot.sdk.generated.rpc.ToolsListResult(List) may expose internal representation by storing an externally mutable object into ToolsListResult.tools |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
25 |
Medium |
com.github.copilot.sdk.generated.rpc.ToolsListResult$ToolsListResultToolsItem
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.generated.rpc.ToolsListResult$ToolsListResultToolsItem.parameters() may expose internal representation by returning ToolsListResult$ToolsListResultToolsItem.parameters |
MALICIOUS_CODE |
EI_EXPOSE_REP |
30 |
Medium |
| new com.github.copilot.sdk.generated.rpc.ToolsListResult$ToolsListResultToolsItem(String, String, String, Map, String) may expose internal representation by storing an externally mutable object into ToolsListResult$ToolsListResultToolsItem.parameters |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
com.github.copilot.sdk.json.BlobAttachment
| Bug |
Category |
Details |
Line |
Priority |
| Unread field: com.github.copilot.sdk.json.BlobAttachment.type; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
31 |
Medium |
com.github.copilot.sdk.json.CopilotClientOptions
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.json.CopilotClientOptions defines clone() but doesn't implement Cloneable |
BAD_PRACTICE |
CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE |
498 |
High |
com.github.copilot.sdk.json.MessageOptions
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.json.MessageOptions defines clone() but doesn't implement Cloneable |
BAD_PRACTICE |
CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE |
138 |
High |
com.github.copilot.sdk.json.ResumeSessionConfig
| Bug |
Category |
Details |
Line |
Priority |
| com.github.copilot.sdk.json.ResumeSessionConfig defines clone() but doesn't implement Cloneable |
BAD_PRACTICE |
CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE |
623 |
High |
com.github.copilot.sdk.json.SessionConfig