Buggy code:
private void printCmdHelp ( CommonTree ast ) { } private void cleanupAndExit ( ) { } KsDef getKSMetaData ( String keyspace ) throws InvalidRequestException , NotFoundException , TException { } private void executeCount ( CommonTree ast ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } private void executeDelete ( CommonTree ast ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } private void doSlice ( String keyspace , String key , String columnFamily , byte [ ] superColumnName ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private String formatSuperColumnName ( String keyspace , String columnFamily , SuperColumn column ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , NotFoundException , TException { } private String formatSubcolumnName ( String keyspace , String columnFamily , Column subcolumn ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , NotFoundException , TException { } private String formatColumnName ( String keyspace , String columnFamily , Column column ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , NotFoundException , TException { } private AbstractType getFormatTypeForColumn ( String compareWith ) { } private void executeGet ( CommonTree ast ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private void executeGetWithConditions ( Tree statement ) { } private void executeSet ( CommonTree ast ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , TimedOutException , UnavailableException , TException { } private void executeShowClusterName ( ) throws TException { } private void executeAddKeyspace ( Tree statement ) { } private void executeAddColumnFamily ( Tree statement ) { } private void executeUpdateKeyspace ( Tree statement ) { } private void executeUpdateColumnFamily ( Tree statement ) { } private KsDef updateKsDefAttributes ( Tree statement , KsDef ksDefToUpdate ) { } private CfDef updateCfDefAttributes ( Tree statement , CfDef cfDefToUpdate ) { } private void executeDelKeyspace ( CommonTree ast ) throws InvalidRequestException , NotFoundException , TException { } private void executeDelColumnFamily ( CommonTree ast ) throws InvalidRequestException , NotFoundException , TException { } private void executeList ( CommonTree ast ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { } private void executeShowVersion ( ) throws TException { } private void executeShowTables ( ) throws InvalidRequestException , TException { } private boolean hasKeySpace ( ) { } public String getKeySpace ( ) { } public void setKeyspace ( String keySpace ) throws InvalidRequestException , NotFoundException , TException { } public String getUsername ( ) { } public void setUsername ( String username ) { } private void executeUseTable ( CommonTree ast ) throws TException { } private void describeTableInternal ( String tableName , KsDef metadata ) throws TException { } private void executeDescribeTable ( CommonTree ast ) throws TException { } private void executeConnect ( CommonTree ast ) { } private CfDef getCfDef ( String keySpaceName , String columnFamilyName ) { } private CfDef getCfDef ( String columnFamilyName ) { } private List < ColumnDef > getCFColumnMetaFromTree ( Tree meta ) { } private IndexType getIndexTypeFromString ( String indexTypeAsString ) { } private ByteBuffer getBytesAccordingToType ( String object , AbstractType comparator ) { } private ByteBuffer columnNameAsBytes ( String column , String columnFamily ) throws IllegalAccessException , InstantiationException , NoSuchFieldException { } private ByteBuffer columnValueAsBytes ( ByteBuffer columnName , String columnFamilyName , String columnValue ) { } private AbstractType getValidatorForValue ( CfDef ColumnFamilyDef , byte [ ] columnNameInBytes ) { } private Map < String , String > getStrategyOptionsFromTree ( Tree options ) { } private ByteBuffer convertValueByFunction ( Tree functionCall , CfDef columnFamily , ByteBuffer columnName ) { } private ByteBuffer convertValueByFunction ( Tree functionCall , CfDef columnFamily , ByteBuffer columnName , boolean withUpdate ) { } private void updateColumnMetaData ( CfDef columnFamily , ByteBuffer columnName , String validationClass ) { } private ColumnDef getColumnDefByName ( CfDef columnFamily , ByteBuffer columnName ) { } private void printSliceList ( CfDef columnFamilyDef , List < KeySlice > slices ) throws IllegalAccessException , InstantiationException , NoSuchFieldException , NotFoundException , TException { AbstractType validator ; String columnFamilyName = columnFamilyDef . getName ( ) ; for ( KeySlice ks : slices ) { css_ . out . printf ( "-------------------\n" ) ; <START_BUG> css_ . out . printf ( "RowKey:<seq2seq4repair_space>%s\n" , new String ( ks . key . array ( ) , ks . key . position ( ) , ks . key . remaining ( ) , Charsets . UTF_8 ) ) ; <END_BUG> Iterator < ColumnOrSuperColumn > iterator = ks . getColumnsIterator ( ) ; while ( iterator . hasNext ( ) ) { ColumnOrSuperColumn columnOrSuperColumn = iterator . next ( ) ; if ( ( columnOrSuperColumn . column ) != null ) { Column col = columnOrSuperColumn . column ; validator = getValidatorForValue ( columnFamilyDef , col . getName ( ) ) ; css_ . out . printf ( "=><seq2seq4repair_space>(column=%s,<seq2seq4repair_space>value=%s,<seq2seq4repair_space>timestamp=%d)\n" , formatColumnName ( keySpace , columnFamilyName , col ) , validator . getString ( col . value ) , col . timestamp ) ; } else if ( ( columnOrSuperColumn . super_column ) != null ) { SuperColumn superCol = columnOrSuperColumn . super_column ; css_ . out . printf ( "=><seq2seq4repair_space>(super_column=%s," , formatSuperColumnName ( keySpace , columnFamilyName , superCol ) ) ; for ( Column col : superCol . columns ) { validator = getValidatorForValue ( columnFamilyDef , col . getName ( ) ) ; css_ . out . printf ( "\n<seq2seq4repair_space>(column=%s,<seq2seq4repair_space>value=%s,<seq2seq4repair_space>timestamp=%d)" , formatSubcolumnName ( keySpace , columnFamilyName , col ) , validator . getString ( col . value ) , col . timestamp ) ; } css_ . out . println ( ")" ) ; } } } css_ . out . printf ( "\n%d<seq2seq4repair_space>Row%s<seq2seq4repair_space>Returned.\n" , slices . size ( ) , ( ( slices . size ( ) ) > 1 ? "s" : "" ) ) ; } }

Fix:
css_ . out . printf ( "RowKey:<seq2seq4repair_space>%s\n" , ByteBufferUtil . string ( ks . key , Charsets . UTF_8 ) ) ;