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
37 12 0 0

Files

Class Bugs
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.dumper.PostgreSQLIncrementalDumper 1
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.decode.PostgreSQLTimestampUtils 1
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.DeleteRowEvent 2
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.UpdateRowEvent 2
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.WriteRowEvent 2
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.position.slot.PostgreSQLSlotNameGenerator 1
org.apache.shardingsphere.data.pipeline.postgresql.query.PostgreSQLJDBCStreamQueryBuilder 1
org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.ddl.PostgreSQLDDLTemplateExecutor 2

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.dumper.PostgreSQLIncrementalDumper

Bug Category Details Line Priority
new org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.dumper.PostgreSQLIncrementalDumper(IncrementalDumperContext, IngestPosition, PipelineChannel, PipelineTableMetaDataLoader) may expose internal representation by storing an externally mutable object into PostgreSQLIncrementalDumper.channel MALICIOUS_CODE EI_EXPOSE_REP2 81 Medium

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.decode.PostgreSQLTimestampUtils

Bug Category Details Line Priority
new org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.decode.PostgreSQLTimestampUtils(TimestampUtils) may expose internal representation by storing an externally mutable object into PostgreSQLTimestampUtils.timestampUtils MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.DeleteRowEvent

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.DeleteRowEvent.getPrimaryKeys() may expose internal representation by returning DeleteRowEvent.primaryKeys MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.DeleteRowEvent.setPrimaryKeys(List) may expose internal representation by storing an externally mutable object into DeleteRowEvent.primaryKeys MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.UpdateRowEvent

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.UpdateRowEvent.getAfterRow() may expose internal representation by returning UpdateRowEvent.afterRow MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.UpdateRowEvent.setAfterRow(List) may expose internal representation by storing an externally mutable object into UpdateRowEvent.afterRow MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.WriteRowEvent

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.WriteRowEvent.getAfterRow() may expose internal representation by returning WriteRowEvent.afterRow MALICIOUS_CODE EI_EXPOSE_REP 34 Medium
org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.event.WriteRowEvent.setAfterRow(List) may expose internal representation by storing an externally mutable object into WriteRowEvent.afterRow MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.position.slot.PostgreSQLSlotNameGenerator

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.shardingsphere.data.pipeline.postgresql.ingest.incremental.wal.position.slot.PostgreSQLSlotNameGenerator.getUniqueSlotName(Connection, String): String.getBytes() I18N DM_DEFAULT_ENCODING 44 High

org.apache.shardingsphere.data.pipeline.postgresql.query.PostgreSQLJDBCStreamQueryBuilder

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.postgresql.query.PostgreSQLJDBCStreamQueryBuilder.build(Connection, String, int) may fail to clean up java.sql.Statement on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 34 Medium

org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.ddl.PostgreSQLDDLTemplateExecutor

Bug Category Details Line Priority
org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.ddl.PostgreSQLDDLTemplateExecutor.getConnection() may expose internal representation by returning PostgreSQLDDLTemplateExecutor.connection MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.ddl.PostgreSQLDDLTemplateExecutor(Connection, int, int) may expose internal representation by storing an externally mutable object into PostgreSQLDDLTemplateExecutor.connection MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium