Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.1

Threshold is

Effort is default

Summary

Classes Bugs Errors Missing Classes
209 71 0 0

Files

Class Bugs
com.healthmarketscience.common.util.StringAppendableExt 1
com.healthmarketscience.sqlbuilder.AliasedObject 1
com.healthmarketscience.sqlbuilder.BaseGrantQuery 4
com.healthmarketscience.sqlbuilder.BaseGrantQuery$TargetObject 1
com.healthmarketscience.sqlbuilder.CheckConstraintClause 1
com.healthmarketscience.sqlbuilder.CreateViewQuery 1
com.healthmarketscience.sqlbuilder.CustomCondition 1
com.healthmarketscience.sqlbuilder.CustomExpression 1
com.healthmarketscience.sqlbuilder.DeleteQuery 1
com.healthmarketscience.sqlbuilder.InsertSelectQuery 1
com.healthmarketscience.sqlbuilder.JdbcEscape 1
com.healthmarketscience.sqlbuilder.NegateExpression 1
com.healthmarketscience.sqlbuilder.NotCondition 1
com.healthmarketscience.sqlbuilder.OrderObject 1
com.healthmarketscience.sqlbuilder.QueryPreparer$MultiPlaceHolder 1
com.healthmarketscience.sqlbuilder.QueryPreparer$PlaceHolder 1
com.healthmarketscience.sqlbuilder.QueryReader$Column 1
com.healthmarketscience.sqlbuilder.SelectQuery 2
com.healthmarketscience.sqlbuilder.SqlContext 3
com.healthmarketscience.sqlbuilder.SqlObjectList 1
com.healthmarketscience.sqlbuilder.UpdateQuery 1
com.healthmarketscience.sqlbuilder.ValidationContext 6
com.healthmarketscience.sqlbuilder.ValidationException 2
com.healthmarketscience.sqlbuilder.dbspec.RejoinTable 1
com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin 4
com.healthmarketscience.sqlbuilder.dbspec.basic.DbCheckConstraint 3
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn 2
com.healthmarketscience.sqlbuilder.dbspec.basic.DbConstraint 2
com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint 4
com.healthmarketscience.sqlbuilder.dbspec.basic.DbIndex 3
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin 8
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema 5
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSpec 2
com.healthmarketscience.sqlbuilder.dbspec.basic.DbTable 2

com.healthmarketscience.common.util.StringAppendableExt

Bug Category Details Line Priority
com.healthmarketscience.common.util.StringAppendableExt.getIOException() may expose internal representation by returning StringAppendableExt._ioException MALICIOUS_CODE EI_EXPOSE_REP 165 Medium

com.healthmarketscience.sqlbuilder.AliasedObject

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.AliasedObject(SqlObject, String) may expose internal representation by storing an externally mutable object into AliasedObject._obj MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium

com.healthmarketscience.sqlbuilder.BaseGrantQuery

Bug Category Details Line Priority
Public static com.healthmarketscience.sqlbuilder.BaseGrantQuery.privilegeAll() may expose internal representation by returning BaseGrantQuery.PRIVILEGE_ALL MALICIOUS_CODE MS_EXPOSE_REP 113 Medium
Public static com.healthmarketscience.sqlbuilder.BaseGrantQuery.privilegeDelete() may expose internal representation by returning BaseGrantQuery.PRIVILEGE_DELETE MALICIOUS_CODE MS_EXPOSE_REP 123 Medium
Public static com.healthmarketscience.sqlbuilder.BaseGrantQuery.privilegeSelect() may expose internal representation by returning BaseGrantQuery.PRIVILEGE_SELECT MALICIOUS_CODE MS_EXPOSE_REP 118 Medium
Public static com.healthmarketscience.sqlbuilder.BaseGrantQuery.privilegeUsage() may expose internal representation by returning BaseGrantQuery.PRIVILEGE_USAGE MALICIOUS_CODE MS_EXPOSE_REP 146 Medium

com.healthmarketscience.sqlbuilder.BaseGrantQuery$TargetObject

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.BaseGrantQuery$TargetObject(BaseGrantQuery$TargetObject$Type, SqlObject) may expose internal representation by storing an externally mutable object into BaseGrantQuery$TargetObject._name MALICIOUS_CODE EI_EXPOSE_REP2 296 Medium

com.healthmarketscience.sqlbuilder.CheckConstraintClause

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.CheckConstraintClause.getCondition() may expose internal representation by returning CheckConstraintClause._condition MALICIOUS_CODE EI_EXPOSE_REP 55 Medium

com.healthmarketscience.sqlbuilder.CreateViewQuery

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.CreateViewQuery.setSelectQuery(SelectQuery) may expose internal representation by storing an externally mutable object into CreateViewQuery._selectQuery MALICIOUS_CODE EI_EXPOSE_REP2 73 Medium

com.healthmarketscience.sqlbuilder.CustomCondition

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.CustomCondition(SqlObject) may expose internal representation by storing an externally mutable object into CustomCondition._cond MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

com.healthmarketscience.sqlbuilder.CustomExpression

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.CustomExpression(SqlObject) may expose internal representation by storing an externally mutable object into CustomExpression._expr MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

com.healthmarketscience.sqlbuilder.DeleteQuery

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.DeleteQuery.getWhereClause() may expose internal representation by returning DeleteQuery._condition MALICIOUS_CODE EI_EXPOSE_REP 53 Medium

com.healthmarketscience.sqlbuilder.InsertSelectQuery

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.InsertSelectQuery.setSelectQuery(SelectQuery) may expose internal representation by storing an externally mutable object into InsertSelectQuery._selectQuery MALICIOUS_CODE EI_EXPOSE_REP2 54 Medium

com.healthmarketscience.sqlbuilder.JdbcEscape

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.JdbcEscape(JdbcEscape$Type, SqlObject) may expose internal representation by storing an externally mutable object into JdbcEscape._val MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium

com.healthmarketscience.sqlbuilder.NegateExpression

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.NegateExpression(Expression) may expose internal representation by storing an externally mutable object into NegateExpression._expression MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

com.healthmarketscience.sqlbuilder.NotCondition

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.NotCondition(Condition) may expose internal representation by storing an externally mutable object into NotCondition._condition MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium

com.healthmarketscience.sqlbuilder.OrderObject

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.OrderObject(OrderObject$Dir, SqlObject) may expose internal representation by storing an externally mutable object into OrderObject._obj MALICIOUS_CODE EI_EXPOSE_REP2 77 Medium

com.healthmarketscience.sqlbuilder.QueryPreparer$MultiPlaceHolder

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.QueryPreparer$MultiPlaceHolder.getIndexes() may expose internal representation by returning QueryPreparer$MultiPlaceHolder._indexes MALICIOUS_CODE EI_EXPOSE_REP 575 Medium

com.healthmarketscience.sqlbuilder.QueryPreparer$PlaceHolder

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.QueryPreparer$PlaceHolder(QueryPreparer) may expose internal representation by storing an externally mutable object into QueryPreparer$PlaceHolder._outer MALICIOUS_CODE EI_EXPOSE_REP2 338 Medium

com.healthmarketscience.sqlbuilder.QueryReader$Column

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.QueryReader$Column.getCustomColumnObject() may expose internal representation by returning QueryReader$Column._columnObj MALICIOUS_CODE EI_EXPOSE_REP 163 Medium

com.healthmarketscience.sqlbuilder.SelectQuery

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.SelectQuery.getHavingClause() may expose internal representation by returning SelectQuery._having MALICIOUS_CODE EI_EXPOSE_REP 435 Medium
com.healthmarketscience.sqlbuilder.SelectQuery.getWhereClause() may expose internal representation by returning SelectQuery._condition MALICIOUS_CODE EI_EXPOSE_REP 411 Medium

com.healthmarketscience.sqlbuilder.SqlContext

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.SqlContext.getParent() may expose internal representation by returning SqlContext._parent MALICIOUS_CODE EI_EXPOSE_REP 60 Medium
com.healthmarketscience.sqlbuilder.SqlContext.getQuery() may expose internal representation by returning SqlContext._query MALICIOUS_CODE EI_EXPOSE_REP 107 Medium
com.healthmarketscience.sqlbuilder.SqlContext.setQuery(Query) may expose internal representation by storing an externally mutable object into SqlContext._query MALICIOUS_CODE EI_EXPOSE_REP2 114 Medium

com.healthmarketscience.sqlbuilder.SqlObjectList

Bug Category Details Line Priority
new com.healthmarketscience.sqlbuilder.SqlObjectList(String, List) may expose internal representation by storing an externally mutable object into SqlObjectList._objects MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium

com.healthmarketscience.sqlbuilder.UpdateQuery

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.UpdateQuery.getWhereClause() may expose internal representation by returning UpdateQuery._condition MALICIOUS_CODE EI_EXPOSE_REP 79 Medium

com.healthmarketscience.sqlbuilder.ValidationContext

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.ValidationContext.getColumns() may expose internal representation by returning ValidationContext._columns MALICIOUS_CODE EI_EXPOSE_REP 92 Medium
com.healthmarketscience.sqlbuilder.ValidationContext.getParent() may expose internal representation by returning ValidationContext._parent MALICIOUS_CODE EI_EXPOSE_REP 76 Medium
com.healthmarketscience.sqlbuilder.ValidationContext.getTables() may expose internal representation by returning ValidationContext._tables MALICIOUS_CODE EI_EXPOSE_REP 80 Medium
new com.healthmarketscience.sqlbuilder.ValidationContext(ValidationContext, Collection, Collection, boolean) may expose internal representation by storing an externally mutable object into ValidationContext._parent MALICIOUS_CODE EI_EXPOSE_REP2 67 Medium
com.healthmarketscience.sqlbuilder.ValidationContext.setColumns(Collection) may expose internal representation by storing an externally mutable object into ValidationContext._columns MALICIOUS_CODE EI_EXPOSE_REP2 96 Medium
com.healthmarketscience.sqlbuilder.ValidationContext.setTables(Collection) may expose internal representation by storing an externally mutable object into ValidationContext._tables MALICIOUS_CODE EI_EXPOSE_REP2 84 Medium

com.healthmarketscience.sqlbuilder.ValidationException

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.ValidationException.getFailedVerifiable() may expose internal representation by returning ValidationException._failedVerifiable MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
com.healthmarketscience.sqlbuilder.ValidationException.setFailedVerifiable(Map$Entry) may expose internal representation by storing an externally mutable object into ValidationException._failedVerifiable MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

com.healthmarketscience.sqlbuilder.dbspec.RejoinTable

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.RejoinTable.getColumns() may expose internal representation by returning RejoinTable._columns MALICIOUS_CODE EI_EXPOSE_REP 58 Medium

com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin.getFromColumns() may expose internal representation by returning SimpleJoin._fromColumns MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin.getToColumns() may expose internal representation by returning SimpleJoin._toColumns MALICIOUS_CODE EI_EXPOSE_REP 70 Medium
new com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin(Table, Table, List, List) may expose internal representation by storing an externally mutable object into SimpleJoin._fromColumns MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium
new com.healthmarketscience.sqlbuilder.dbspec.SimpleJoin(Table, Table, List, List) may expose internal representation by storing an externally mutable object into SimpleJoin._toColumns MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbCheckConstraint

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbCheckConstraint.getCondition() may expose internal representation by returning DbCheckConstraint._condition MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbCheckConstraint(DbColumn, String, Condition) may expose internal representation by storing an externally mutable object into DbCheckConstraint._condition MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbCheckConstraint(DbTable, String, Condition) may expose internal representation by storing an externally mutable object into DbCheckConstraint._condition MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn.getConstraints() may expose internal representation by returning DbColumn._constraints MALICIOUS_CODE EI_EXPOSE_REP 114 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn.getTypeQualifiers() may expose internal representation by returning DbColumn._qualifiers MALICIOUS_CODE EI_EXPOSE_REP 109 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbConstraint

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbConstraint.getColumns() may expose internal representation by returning DbConstraint._columns MALICIOUS_CODE EI_EXPOSE_REP 69 Medium
Redundant nullcheck of name, which is known to be non-null in com.healthmarketscience.sqlbuilder.dbspec.basic.DbConstraint.toString() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 75 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint.getReferencedColumns() may expose internal representation by returning DbForeignKeyConstraint._referencedColumns MALICIOUS_CODE EI_EXPOSE_REP 72 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint.getReferencedTable() may expose internal representation by returning DbForeignKeyConstraint._referencedTable MALICIOUS_CODE EI_EXPOSE_REP 67 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint(DbColumn, String, DbTable, DbColumn) may expose internal representation by storing an externally mutable object into DbForeignKeyConstraint._referencedTable MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbForeignKeyConstraint(DbTable, String, DbTable, DbColumn[], DbColumn[]) may expose internal representation by storing an externally mutable object into DbForeignKeyConstraint._referencedTable MALICIOUS_CODE EI_EXPOSE_REP2 61 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbIndex

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbIndex.getColumns() may expose internal representation by returning DbIndex._columns MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbIndex.getTable() may expose internal representation by returning DbIndex._table MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbIndex(DbTable, String, DbColumn[]) may expose internal representation by storing an externally mutable object into DbIndex._table MALICIOUS_CODE EI_EXPOSE_REP2 44 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin.getFromColumns() may expose internal representation by returning DbJoin._fromColumns MALICIOUS_CODE EI_EXPOSE_REP 75 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin.getFromTable() may expose internal representation by returning DbJoin._fromTable MALICIOUS_CODE EI_EXPOSE_REP 65 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin.getSpec() may expose internal representation by returning DbJoin._spec MALICIOUS_CODE EI_EXPOSE_REP 60 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin.getToColumns() may expose internal representation by returning DbJoin._toColumns MALICIOUS_CODE EI_EXPOSE_REP 80 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin.getToTable() may expose internal representation by returning DbJoin._toTable MALICIOUS_CODE EI_EXPOSE_REP 70 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin(DbSpec, DbTable, DbTable, DbColumn[], DbColumn[]) may expose internal representation by storing an externally mutable object into DbJoin._fromTable MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin(DbSpec, DbTable, DbTable, DbColumn[], DbColumn[]) may expose internal representation by storing an externally mutable object into DbJoin._spec MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbJoin(DbSpec, DbTable, DbTable, DbColumn[], DbColumn[]) may expose internal representation by storing an externally mutable object into DbJoin._toTable MALICIOUS_CODE EI_EXPOSE_REP2 53 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema.getFunctionPackages() may expose internal representation by returning DbSchema._functionPackages MALICIOUS_CODE EI_EXPOSE_REP 59 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema.getIndexs() may expose internal representation by returning DbSchema._indexes MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema.getSpec() may expose internal representation by returning DbSchema._spec MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema.getTables() may expose internal representation by returning DbSchema._tables MALICIOUS_CODE EI_EXPOSE_REP 51 Medium
new com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema(DbSpec, String) may expose internal representation by storing an externally mutable object into DbSchema._spec MALICIOUS_CODE EI_EXPOSE_REP2 42 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbSpec

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSpec.getJoins() may expose internal representation by returning DbSpec._joins MALICIOUS_CODE EI_EXPOSE_REP 65 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSpec.getSchemas() may expose internal representation by returning DbSpec._schemas MALICIOUS_CODE EI_EXPOSE_REP 61 Medium

com.healthmarketscience.sqlbuilder.dbspec.basic.DbTable

Bug Category Details Line Priority
com.healthmarketscience.sqlbuilder.dbspec.basic.DbTable.getColumns() may expose internal representation by returning DbTable._columns MALICIOUS_CODE EI_EXPOSE_REP 62 Medium
com.healthmarketscience.sqlbuilder.dbspec.basic.DbTable.getConstraints() may expose internal representation by returning DbTable._constraints MALICIOUS_CODE EI_EXPOSE_REP 67 Medium