SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
28 28 0 0

Files

Class Bugs
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult 6
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionRequest 1
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor 4
org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor 4
org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceAnnotations 2
org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceDescriptor 2
org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceURIVariables 1
org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor 6
org.apache.shardingsphere.mcp.api.session.MCPSessionIdentity 2

org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult.getCandidates() may expose internal representation by returning MCPCompletionHandlerResult.candidates MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult.getInferredContextArguments() may expose internal representation by returning MCPCompletionHandlerResult.inferredContextArguments MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult.getMissingContextArguments() may expose internal representation by returning MCPCompletionHandlerResult.missingContextArguments MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
new org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult(Collection, Map, Collection, String) may expose internal representation by storing an externally mutable object into MCPCompletionHandlerResult.candidates MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult(Collection, Map, Collection, String) may expose internal representation by storing an externally mutable object into MCPCompletionHandlerResult.inferredContextArguments MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium
new org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionHandlerResult(Collection, Map, Collection, String) may expose internal representation by storing an externally mutable object into MCPCompletionHandlerResult.missingContextArguments MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionRequest

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionRequest.getContextArguments() may expose internal representation by returning MCPCompletionRequest.contextArguments MALICIOUS_CODE EI_EXPOSE_REP 35 Medium

org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor.getArguments() may expose internal representation by returning MCPCompletionTargetDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor.getMeta() may expose internal representation by returning MCPCompletionTargetDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor(String, String, Collection, int, Map) may expose internal representation by storing an externally mutable object into MCPCompletionTargetDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.api.capability.completion.MCPCompletionTargetDescriptor(String, String, Collection, int, Map) may expose internal representation by storing an externally mutable object into MCPCompletionTargetDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor.getArguments() may expose internal representation by returning MCPPromptDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP 39 Medium
org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor.getMeta() may expose internal representation by returning MCPPromptDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor(String, String, String, List, Map) may expose internal representation by storing an externally mutable object into MCPPromptDescriptor.arguments MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium
new org.apache.shardingsphere.mcp.api.capability.prompt.MCPPromptDescriptor(String, String, String, List, Map) may expose internal representation by storing an externally mutable object into MCPPromptDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceAnnotations

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceAnnotations.getAudience() may expose internal representation by returning MCPResourceAnnotations.audience MALICIOUS_CODE EI_EXPOSE_REP 36 Medium
new org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceAnnotations(List, Double, String) may expose internal representation by storing an externally mutable object into MCPResourceAnnotations.audience MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceDescriptor.getMeta() may expose internal representation by returning MCPResourceDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceDescriptor(String, String, String, String, String, MCPResourceAnnotations, Map) may expose internal representation by storing an externally mutable object into MCPResourceDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceURIVariables

Bug Category Details Line Priority
new org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceURIVariables(Map) may expose internal representation by storing an externally mutable object into MCPResourceURIVariables.variables MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor.getInputSchema() may expose internal representation by returning MCPToolDescriptor.inputSchema MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor.getMeta() may expose internal representation by returning MCPToolDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP 44 Medium
org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor.getOutputSchema() may expose internal representation by returning MCPToolDescriptor.outputSchema MALICIOUS_CODE EI_EXPOSE_REP 40 Medium
new org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor(String, String, String, Map, Map, MCPToolAnnotations, Map) may expose internal representation by storing an externally mutable object into MCPToolDescriptor.inputSchema MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor(String, String, String, Map, Map, MCPToolAnnotations, Map) may expose internal representation by storing an externally mutable object into MCPToolDescriptor.meta MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new org.apache.shardingsphere.mcp.api.capability.tool.MCPToolDescriptor(String, String, String, Map, Map, MCPToolAnnotations, Map) may expose internal representation by storing an externally mutable object into MCPToolDescriptor.outputSchema MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium

org.apache.shardingsphere.mcp.api.session.MCPSessionIdentity

Bug Category Details Line Priority
org.apache.shardingsphere.mcp.api.session.MCPSessionIdentity.getAttributes() may expose internal representation by returning MCPSessionIdentity.attributes MALICIOUS_CODE EI_EXPOSE_REP 41 Medium
new org.apache.shardingsphere.mcp.api.session.MCPSessionIdentity(String, String, String, Map) may expose internal representation by storing an externally mutable object into MCPSessionIdentity.attributes MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium