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 |
| 102 |
47 |
0 |
0 |
org.apache.shardingsphere.database.protocol.firebird.constant.protocol.FirebirdConnectionProtocolVersion
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.database.protocol.firebird.constant.protocol.FirebirdConnectionProtocolVersion.getInstance() may expose internal representation by returning FirebirdConnectionProtocolVersion.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.err.FirebirdStatusVector
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.err.FirebirdStatusVector.getSegments() may expose internal representation by returning FirebirdStatusVector.segments |
MALICIOUS_CODE |
EI_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.err.FirebirdStatusVector$Segment
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.err.FirebirdStatusVector$Segment.getArguments() may expose internal representation by returning FirebirdStatusVector$Segment.arguments |
MALICIOUS_CODE |
EI_EXPOSE_REP |
81 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.err.FirebirdStatusVector$Segment(int, List, String) may expose internal representation by storing an externally mutable object into FirebirdStatusVector$Segment.arguments |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
75 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchCreateCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchCreateCommandPacket.getBatchBlr() may expose internal representation by returning FirebirdBatchCreateCommandPacket.batchBlr |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchCreateCommandPacket.getBatchParametersBuffer() may expose internal representation by returning FirebirdBatchCreateCommandPacket.batchParametersBuffer |
MALICIOUS_CODE |
EI_EXPOSE_REP |
39 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchMessageCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchMessageCommandPacket.getData() may expose internal representation by returning FirebirdBatchMessageCommandPacket.data |
MALICIOUS_CODE |
EI_EXPOSE_REP |
45 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchStatement
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchStatement.getColumnDescriptors() may expose internal representation by returning FirebirdBatchStatement.columnDescriptors |
MALICIOUS_CODE |
EI_EXPOSE_REP |
36 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchStatement.getParameterValues() may expose internal representation by returning FirebirdBatchStatement.parameterValues |
MALICIOUS_CODE |
EI_EXPOSE_REP |
44 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdBatchStatement(int, List, long, boolean, boolean) may expose internal representation by storing an externally mutable object into FirebirdBatchStatement.columnDescriptors |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
30 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdParseBatchBlr
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.batch.FirebirdParseBatchBlr.getFields() may expose internal representation by returning FirebirdParseBatchBlr.fields |
MALICIOUS_CODE |
EI_EXPOSE_REP |
41 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdBatchBlobSegmentsCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdBatchBlobSegmentsCommandPacket.getSegments() may expose internal representation by returning FirebirdBatchBlobSegmentsCommandPacket.segments |
MALICIOUS_CODE |
EI_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdGetBlobSegmentCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdGetBlobSegmentCommandPacket.getSegment() may expose internal representation by returning FirebirdGetBlobSegmentCommandPacket.segment |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdGetBlobSegmentResponsePacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdGetBlobSegmentResponsePacket(byte[]) may expose internal representation by storing an externally mutable object into FirebirdGetBlobSegmentResponsePacket.segment |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdPutBlobSegmentCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.blob.FirebirdPutBlobSegmentCommandPacket.getSegment() may expose internal representation by returning FirebirdPutBlobSegmentCommandPacket.segment |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.FirebirdInfoPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.FirebirdInfoPacket.getInfoItems() may expose internal representation by returning FirebirdInfoPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.blob.FirebirdBlobInfoReturnPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.blob.FirebirdBlobInfoReturnPacket.getInfoItems() may expose internal representation by returning FirebirdBlobInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP |
41 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.blob.FirebirdBlobInfoReturnPacket(List, int, boolean) may expose internal representation by storing an externally mutable object into FirebirdBlobInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
33 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.database.FirebirdDatabaseInfoReturnPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.database.FirebirdDatabaseInfoReturnPacket.getInfoItems() may expose internal representation by returning FirebirdDatabaseInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP |
60 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.database.FirebirdDatabaseInfoReturnPacket(List) may expose internal representation by storing an externally mutable object into FirebirdDatabaseInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
35 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.sql.FirebirdSQLInfoReturnPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.sql.FirebirdSQLInfoReturnPacket.getInfoItems() may expose internal representation by returning FirebirdSQLInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP |
49 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.info.type.sql.FirebirdSQLInfoReturnPacket(List, FirebirdSQLRecordsInfo) may expose internal representation by storing an externally mutable object into FirebirdSQLInfoReturnPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
33 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.FirebirdBlrRowMetadata
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.FirebirdBlrRowMetadata.getColumnTypes() may expose internal representation by returning FirebirdBlrRowMetadata.columnTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
39 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.FirebirdFetchStatementPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.FirebirdFetchStatementPacket.getParameterTypes() may expose internal representation by returning FirebirdFetchStatementPacket.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.execute.FirebirdExecuteStatementPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.execute.FirebirdExecuteStatementPacket.getParameterTypes() may expose internal representation by returning FirebirdExecuteStatementPacket.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
44 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.execute.FirebirdExecuteStatementPacket.getParameterValues() may expose internal representation by returning FirebirdExecuteStatementPacket.parameterValues |
MALICIOUS_CODE |
EI_EXPOSE_REP |
48 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.execute.FirebirdExecuteStatementPacket.getReturnColumns() may expose internal representation by returning FirebirdExecuteStatementPacket.returnColumns |
MALICIOUS_CODE |
EI_EXPOSE_REP |
50 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementPacket.getHintValueContext() may expose internal representation by returning FirebirdPrepareStatementPacket.hintValueContext |
MALICIOUS_CODE |
EI_EXPOSE_REP |
44 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementPacket.getInfoItems() may expose internal representation by returning FirebirdPrepareStatementPacket.infoItems |
MALICIOUS_CODE |
EI_EXPOSE_REP |
48 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementReturnPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementReturnPacket.getDescribeBind() may expose internal representation by returning FirebirdPrepareStatementReturnPacket.describeBind |
MALICIOUS_CODE |
EI_EXPOSE_REP |
43 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdPrepareStatementReturnPacket.getDescribeSelect() may expose internal representation by returning FirebirdPrepareStatementReturnPacket.describeSelect |
MALICIOUS_CODE |
EI_EXPOSE_REP |
41 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdReturnColumnPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdReturnColumnPacket(Collection, int, ShardingSphereTable, ShardingSphereColumn, String, String, String, Integer, boolean, Integer) may expose internal representation by storing an externally mutable object into FirebirdReturnColumnPacket.requestedItems |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
34 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.command.query.statement.prepare.FirebirdReturnColumnPacket(Collection, int, ShardingSphereTable, ShardingSphereColumn, String, String, String, Integer, boolean, Integer) may expose internal representation by storing an externally mutable object into FirebirdReturnColumnPacket.table |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
34 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdBatchCompletionStateResponse$DetailedError
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdBatchCompletionStateResponse$DetailedError.getStatusVector() may expose internal representation by returning FirebirdBatchCompletionStateResponse$DetailedError.statusVector |
MALICIOUS_CODE |
EI_EXPOSE_REP |
118 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdBatchCompletionStateResponse$DetailedError(int, FirebirdStatusVector) may expose internal representation by storing an externally mutable object into FirebirdBatchCompletionStateResponse$DetailedError.statusVector |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
112 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdGenericResponsePacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdGenericResponsePacket.getData() may expose internal representation by returning FirebirdGenericResponsePacket.data |
MALICIOUS_CODE |
EI_EXPOSE_REP |
38 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdGenericResponsePacket.getStatusVector() may expose internal representation by returning FirebirdGenericResponsePacket.statusVector |
MALICIOUS_CODE |
EI_EXPOSE_REP |
40 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.generic.FirebirdGenericResponsePacket.setData(FirebirdPacket) may expose internal representation by storing an externally mutable object into FirebirdGenericResponsePacket.data |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
93 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdAcceptDataPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdAcceptDataPacket.getSalt() may expose internal representation by returning FirebirdAcceptDataPacket.salt |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdAcceptDataPacket(byte[], String, FirebirdAuthenticationMethod, int, String) may expose internal representation by storing an externally mutable object into FirebirdAcceptDataPacket.salt |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdAcceptPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdAcceptPacket.getAcceptDataPacket() may expose internal representation by returning FirebirdAcceptPacket.acceptDataPacket |
MALICIOUS_CODE |
EI_EXPOSE_REP |
46 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdConnectPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdConnectPacket.getUserInfoMap() may expose internal representation by returning FirebirdConnectPacket.userInfoMap |
MALICIOUS_CODE |
EI_EXPOSE_REP |
54 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdConnectPacket.getUserProtocols() may expose internal representation by returning FirebirdConnectPacket.userProtocols |
MALICIOUS_CODE |
EI_EXPOSE_REP |
56 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdSRPAuthenticationData
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdSRPAuthenticationData.getSalt() may expose internal representation by returning FirebirdSRPAuthenticationData.salt |
MALICIOUS_CODE |
EI_EXPOSE_REP |
69 |
Medium |
| org.apache.shardingsphere.database.protocol.firebird.packet.handshake.FirebirdSRPAuthenticationData.getSessionKey() may expose internal representation by returning FirebirdSRPAuthenticationData.sessionKey |
MALICIOUS_CODE |
EI_EXPOSE_REP |
73 |
Medium |
org.apache.shardingsphere.database.protocol.firebird.payload.FirebirdPacketPayload
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.firebird.payload.FirebirdPacketPayload.getByteBuf() may expose internal representation by returning FirebirdPacketPayload.byteBuf |
MALICIOUS_CODE |
EI_EXPOSE_REP |
38 |
Medium |
| new org.apache.shardingsphere.database.protocol.firebird.payload.FirebirdPacketPayload(ByteBuf, Charset) may expose internal representation by storing an externally mutable object into FirebirdPacketPayload.byteBuf |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
34 |
Medium |