Buggy code:
public class MetaDataManager extends StandardTool { public MetaDataManager ( TelosysToolsLogger logger ) { } public List < String > getCatalogs ( Connection con ) throws SQLException { } public List < String > getCatalogs ( DatabaseMetaData dbmd ) throws SQLException { } public List < SchemaMetaData > getSchemas ( Connection con ) throws SQLException { } public List < SchemaMetaData > getSchemas ( DatabaseMetaData dbmd ) throws SQLException { } public List < TableMetaData > getTables ( Connection con , String catalog , String schema , String tableNamePattern , String [ ] tableTypes , String tableNameInclude , String tableNameExclude ) throws SQLException { } public List < TableMetaData > getTables ( DatabaseMetaData dbmd , String catalog , String schema , String tableNamePattern , String [ ] tableTypes , String tableNameInclude , String tableNameExclude ) throws SQLException { <START_BUG> log ( ( ( ( ( ( ( ( ( "getTables(...,<seq2seq4repair_space>'" + catalog ) + "',<seq2seq4repair_space>'" ) + schema ) + "',<seq2seq4repair_space>'" ) + tableNamePattern ) + "',<seq2seq4repair_space>" ) + tableTypes ) + ")" ) ) ; <END_BUG> String schemaToUse = ( "!" . equals ( schema ) ) ? null : schema ; String catalogToUse = ( "!" . equals ( catalog ) ) ? null : catalog ; ResultSet rs = dbmd . getTables ( catalogToUse , schemaToUse , tableNamePattern , tableTypes ) ; log ( "getTables<seq2seq4repair_space>:<seq2seq4repair_space>result<seq2seq4repair_space>set<seq2seq4repair_space>ready" ) ; Pattern patternTableNameInclude = null ; if ( ( tableNameInclude != null ) && ( ! ( "" . equals ( tableNameInclude . trim ( ) ) ) ) ) { patternTableNameInclude = Pattern . compile ( tableNameInclude ) ; } Pattern patternTableNameExclude = null ; if ( ( tableNameExclude != null ) && ( ! ( "" . equals ( tableNameExclude . trim ( ) ) ) ) ) { patternTableNameExclude = Pattern . compile ( tableNameExclude ) ; } LinkedList < TableMetaData > tables = new LinkedList < TableMetaData > ( ) ; int iTablesCount = 0 ; while ( rs . next ( ) ) { iTablesCount ++ ; log ( ( ( "getTables<seq2seq4repair_space>:<seq2seq4repair_space>try<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>table<seq2seq4repair_space>#" + iTablesCount ) + "..." ) ) ; TableMetaData tableMetaData = MetaDataBuilder . buildTableMetaData ( rs ) ; log ( ( ( ( ( "getTables<seq2seq4repair_space>:<seq2seq4repair_space>table<seq2seq4repair_space>#" + iTablesCount ) + "<seq2seq4repair_space>built<seq2seq4repair_space>(<seq2seq4repair_space>name<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( tableMetaData . getTableName ( ) ) ) + "<seq2seq4repair_space>)" ) ) ; String tableName = tableMetaData . getTableName ( ) ; boolean isExclude = isExcludedTable ( tableName , patternTableNameInclude , patternTableNameExclude ) ; if ( ! isExclude ) { tables . addLast ( tableMetaData ) ; } } rs . close ( ) ; return tables ; } protected boolean isExcludedTable ( String tableName , Pattern patternTableNameInclude , Pattern patternTableNameExclude ) { } public List < ColumnMetaData > getColumns ( DatabaseMetaData dbmd , String catalog , String schema , String tableName ) throws SQLException { } public List < PrimaryKeyColumnMetaData > getPKColumns ( DatabaseMetaData dbmd , String catalog , String schema , String tableName ) throws SQLException { } public List < ForeignKeyColumnMetaData > getFKColumns ( DatabaseMetaData dbmd , String catalog , String schema , String tableName ) throws SQLException { } public List < String > getAutoIncrementedColumns ( Connection conn , String schemaName , String tableName ) throws SQLException { } }

Fix:
log ( ( ( ( ( ( ( "getTables(...,<seq2seq4repair_space>'" + catalog ) + "',<seq2seq4repair_space>'" ) + schema ) + "',<seq2seq4repair_space>'" ) + tableNamePattern ) + "'<seq2seq4repair_space>)" ) ) ;