The following document contains the results of SpotBugs
SpotBugs Version is 4.9.3
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
7 | 15 | 0 | 0 |
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 |
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 |
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 | 50 | Medium |
org.apache.shardingsphere.infra.session.query.QueryContext.getHintValueContext() may expose internal representation by returning QueryContext.hintValueContext | MALICIOUS_CODE | EI_EXPOSE_REP | 48 | Medium |
org.apache.shardingsphere.infra.session.query.QueryContext.getMetaData() may expose internal representation by returning QueryContext.metaData | MALICIOUS_CODE | EI_EXPOSE_REP | 52 | Medium |
org.apache.shardingsphere.infra.session.query.QueryContext.getParameters() may expose internal representation by returning QueryContext.parameters | MALICIOUS_CODE | EI_EXPOSE_REP | 46 | Medium |
org.apache.shardingsphere.infra.session.query.QueryContext.getUsedDatabaseNames() may expose internal representation by returning QueryContext.usedDatabaseNames | MALICIOUS_CODE | EI_EXPOSE_REP | 54 | 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 | 69 | 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 | 68 | 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 | 70 | 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 | 67 | Medium |