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 |
|---|---|---|---|
| 8 | 15 | 0 | 0 |
Files
org.apache.shardingsphere.infra.session.connection.ConnectionContext
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.infra.session.connection.ConnectionContext.getCursorContext() may expose internal representation by returning ConnectionContext.cursorContext | MALICIOUS_CODE | EI_EXPOSE_REP | 46 | Medium |
| org.apache.shardingsphere.infra.session.connection.ConnectionContext.getTransactionContext() may expose internal representation by returning ConnectionContext.transactionContext | MALICIOUS_CODE | EI_EXPOSE_REP | 48 | Medium |
org.apache.shardingsphere.infra.session.connection.cursor.CursorConnectionContext
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.infra.session.connection.cursor.CursorConnectionContext.getCursorStatementContexts() may expose internal representation by returning CursorConnectionContext.cursorStatementContexts | MALICIOUS_CODE | EI_EXPOSE_REP | 37 | Medium |
| org.apache.shardingsphere.infra.session.connection.cursor.CursorConnectionContext.getExecutedAllDirections() may expose internal representation by returning CursorConnectionContext.executedAllDirections | MALICIOUS_CODE | EI_EXPOSE_REP | 39 | Medium |
| org.apache.shardingsphere.infra.session.connection.cursor.CursorConnectionContext.getMinGroupRowCounts() may expose internal representation by returning CursorConnectionContext.minGroupRowCounts | MALICIOUS_CODE | EI_EXPOSE_REP | 35 | Medium |
| org.apache.shardingsphere.infra.session.connection.cursor.CursorConnectionContext.getOrderByValueGroups() may expose internal representation by returning CursorConnectionContext.orderByValueGroups | MALICIOUS_CODE | EI_EXPOSE_REP | 33 | Medium |
org.apache.shardingsphere.infra.session.query.QueryContext
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| org.apache.shardingsphere.infra.session.query.QueryContext.getConnectionContext() may expose internal representation by returning QueryContext.connectionContext | MALICIOUS_CODE | EI_EXPOSE_REP | 56 | Medium |
| org.apache.shardingsphere.infra.session.query.QueryContext.getHintValueContext() may expose internal representation by returning QueryContext.hintValueContext | MALICIOUS_CODE | EI_EXPOSE_REP | 54 | Medium |
| org.apache.shardingsphere.infra.session.query.QueryContext.getMetaData() may expose internal representation by returning QueryContext.metaData | MALICIOUS_CODE | EI_EXPOSE_REP | 58 | Medium |
| org.apache.shardingsphere.infra.session.query.QueryContext.getParameters() may expose internal representation by returning QueryContext.parameters | MALICIOUS_CODE | EI_EXPOSE_REP | 52 | Medium |
| org.apache.shardingsphere.infra.session.query.QueryContext.getUsedDatabaseNames() may expose internal representation by returning QueryContext.usedDatabaseNames | MALICIOUS_CODE | EI_EXPOSE_REP | 60 | Medium |
| new org.apache.shardingsphere.infra.session.query.QueryContext(SQLStatementContext, String, List, HintValueContext, ConnectionContext, ShardingSphereMetaData, boolean) may expose internal representation by storing an externally mutable object into QueryContext.connectionContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 75 | Medium |
| new org.apache.shardingsphere.infra.session.query.QueryContext(SQLStatementContext, String, List, HintValueContext, ConnectionContext, ShardingSphereMetaData, boolean) may expose internal representation by storing an externally mutable object into QueryContext.hintValueContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 74 | Medium |
| new org.apache.shardingsphere.infra.session.query.QueryContext(SQLStatementContext, String, List, HintValueContext, ConnectionContext, ShardingSphereMetaData, boolean) may expose internal representation by storing an externally mutable object into QueryContext.metaData | MALICIOUS_CODE | EI_EXPOSE_REP2 | 76 | Medium |
| new org.apache.shardingsphere.infra.session.query.QueryContext(SQLStatementContext, String, List, HintValueContext, ConnectionContext, ShardingSphereMetaData, boolean) may expose internal representation by storing an externally mutable object into QueryContext.parameters | MALICIOUS_CODE | EI_EXPOSE_REP2 | 73 | Medium |
