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 |
| 99 |
21 |
0 |
0 |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLColumnDescription
| Bug |
Category |
Details |
Line |
Priority |
| Unread field: org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLColumnDescription.tableOID; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
37 |
Medium |
| Unread field: org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLColumnDescription.typeModifier; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
45 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLDataRowPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLDataRowPacket.getData() may expose internal representation by returning PostgreSQLDataRowPacket.data |
MALICIOUS_CODE |
EI_EXPOSE_REP |
44 |
Medium |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLDataRowPacket(Collection) may expose internal representation by storing an externally mutable object into PostgreSQLDataRowPacket.data |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLNoDataPacket
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLNoDataPacket.getInstance() may expose internal representation by returning PostgreSQLNoDataPacket.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLParameterDescriptionPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLParameterDescriptionPacket(List) may expose internal representation by storing an externally mutable object into PostgreSQLParameterDescriptionPacket.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLRowDescriptionPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.PostgreSQLRowDescriptionPacket(Collection) may expose internal representation by storing an externally mutable object into PostgreSQLRowDescriptionPacket.columnDescriptions |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedCommandPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedCommandPacket.getPackets() may expose internal representation by returning PostgreSQLAggregatedCommandPacket.packets |
MALICIOUS_CODE |
EI_EXPOSE_REP |
33 |
Medium |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedCommandPacket(List) may expose internal representation by storing an externally mutable object into PostgreSQLAggregatedCommandPacket.packets |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
42 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedResponsesPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedResponsesPacket(List) may expose internal representation by storing an externally mutable object into PostgreSQLAggregatedResponsesPacket.packets |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.bind.PostgreSQLBindCompletePacket
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.bind.PostgreSQLBindCompletePacket.getInstance() may expose internal representation by returning PostgreSQLBindCompletePacket.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.bind.PostgreSQLComBindPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.bind.PostgreSQLComBindPacket(PostgreSQLPacketPayload) may expose internal representation by storing an externally mutable object into PostgreSQLComBindPacket.payload |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
48 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.close.PostgreSQLCloseCompletePacket
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.close.PostgreSQLCloseCompletePacket.getInstance() may expose internal representation by returning PostgreSQLCloseCompletePacket.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
39 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLComParsePacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLComParsePacket.getHintValueContext() may expose internal representation by returning PostgreSQLComParsePacket.hintValueContext |
MALICIOUS_CODE |
EI_EXPOSE_REP |
47 |
Medium |
| org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLComParsePacket.getPayload() may expose internal representation by returning PostgreSQLComParsePacket.payload |
MALICIOUS_CODE |
EI_EXPOSE_REP |
40 |
Medium |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLComParsePacket(PostgreSQLPacketPayload) may expose internal representation by storing an externally mutable object into PostgreSQLComParsePacket.payload |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
50 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLParseCompletePacket
| Bug |
Category |
Details |
Line |
Priority |
| Public static org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.parse.PostgreSQLParseCompletePacket.getInstance() may expose internal representation by returning PostgreSQLParseCompletePacket.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
42 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.simple.PostgreSQLComQueryPacket
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.simple.PostgreSQLComQueryPacket.getHintValueContext() may expose internal representation by returning PostgreSQLComQueryPacket.hintValueContext |
MALICIOUS_CODE |
EI_EXPOSE_REP |
36 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.packet.handshake.authentication.PostgreSQLMD5PasswordAuthenticationPacket
| Bug |
Category |
Details |
Line |
Priority |
| new org.apache.shardingsphere.database.protocol.postgresql.packet.handshake.authentication.PostgreSQLMD5PasswordAuthenticationPacket(byte[]) may expose internal representation by storing an externally mutable object into PostgreSQLMD5PasswordAuthenticationPacket.md5Salt |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
29 |
Medium |
org.apache.shardingsphere.database.protocol.postgresql.payload.PostgreSQLPacketPayload
| Bug |
Category |
Details |
Line |
Priority |
| org.apache.shardingsphere.database.protocol.postgresql.payload.PostgreSQLPacketPayload.getByteBuf() may expose internal representation by returning PostgreSQLPacketPayload.byteBuf |
MALICIOUS_CODE |
EI_EXPOSE_REP |
36 |
Medium |
| new org.apache.shardingsphere.database.protocol.postgresql.payload.PostgreSQLPacketPayload(ByteBuf, Charset) may expose internal representation by storing an externally mutable object into PostgreSQLPacketPayload.byteBuf |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |