Buggy code:
public class Table { public static class TableMetadata { public static final String cfName_ = "TableMetadata" ; private static ICompactSerializer < Table . TableMetadata > serializer_ ; private static Table . TableMetadata tableMetadata_ ; private static IFileWriter writer_ ; private static IFileReader reader_ ; public static Table . TableMetadata instance ( ) throws IOException { } static ICompactSerializer < Table . TableMetadata > serializer ( ) { } private static void load ( ) throws IOException { } private Map < String , String > cfTypeMap_ = new HashMap < String , String > ( ) ; private Map < String , Integer > cfIdMap_ = new HashMap < String , Integer > ( ) ; private Map < Integer , String > idCfMap_ = new HashMap < Integer , String > ( ) ; private static String getFileName ( ) { } public void add ( String cf , int id ) { } public void add ( String cf , int id , String type ) { } public boolean isEmpty ( ) { } int getColumnFamilyId ( String columnFamily ) { } String getColumnFamilyName ( int id ) { } String getColumnFamilyType ( String cfName ) { } Set < String > getColumnFamilies ( ) { } int size ( ) { } boolean isValidColumnFamily ( String cfName ) { } public void apply ( ) throws IOException { } public String toString ( ) { } } static class TableMetadataSerializer implements ICompactSerializer < Table . TableMetadata > { public void serialize ( Table . TableMetadata tmetadata , DataOutputStream dos ) throws IOException { } public Table . TableMetadata deserialize ( DataInputStream dis ) throws IOException { } } public static class BootstrapCompletionHandler implements IStreamComplete { public void onStreamCompletion ( String host , StreamContextManager . StreamContext streamContext , StreamContextManager . StreamStatus streamStatus ) throws IOException { } } public static class BootStrapInitiateVerbHandler implements IVerbHandler { public void doVerb ( Message message ) { byte [ ] body = message . getMessageBody ( ) ; DataInputBuffer bufIn = new DataInputBuffer ( ) ; bufIn . reset ( body , body . length ) ; try { BootstrapInitiateMessage biMsg = BootstrapInitiateMessage . serializer ( ) . deserialize ( bufIn ) ; StreamContextManager [ ] streamContexts = biMsg . getStreamContext ( ) ; Map < String , String > fileNames = getNewNames ( streamContexts ) ; for ( StreamContextManager . StreamContext streamContext : streamContexts ) { StreamContextManager . StreamStatus streamStatus = new StreamContextManager . StreamStatus ( streamContext . getTargetFile ( ) , streamContext . getExpectedBytes ( ) ) ; File sourceFile = new File ( streamContext . getTargetFile ( ) ) ; String [ ] peices = FBUtilities . strip ( sourceFile . getName ( ) , "-" ) ; String newFileName = fileNames . get ( ( ( ( peices [ 1 ] ) + "-" ) + ( peices [ 2 ] ) ) ) ; <START_BUG> String file = new String ( ( ( ( ( DatabaseDescriptor . getDataFileLocation ( ) ) + ( System . getProperty ( "file.separator" ) ) ) + newFileName ) + "-Data.db" ) ) ; <END_BUG> Table . logger_ . debug ( ( ( ( ( ( "Received<seq2seq4repair_space>Data<seq2seq4repair_space>from<seq2seq4repair_space>:<seq2seq4repair_space>" + ( message . getFrom ( ) ) ) + "<seq2seq4repair_space>" ) + ( streamContext . getTargetFile ( ) ) ) + "<seq2seq4repair_space>" ) + file ) ) ; streamContext . setTargetFile ( file ) ; addStreamContext ( message . getFrom ( ) . getHost ( ) , streamContext , streamStatus ) ; } StreamContextManager . registerStreamCompletionHandler ( message . getFrom ( ) . getHost ( ) , new Table . BootstrapCompletionHandler ( ) ) ; Table . logger_ . debug ( "Sending<seq2seq4repair_space>a<seq2seq4repair_space>bootstrap<seq2seq4repair_space>initiate<seq2seq4repair_space>done<seq2seq4repair_space>message<seq2seq4repair_space>..." ) ; Message doneMessage = new Message ( StorageService . getLocalStorageEndPoint ( ) , "" , StorageService . bootStrapInitiateDoneVerbHandler_ , new byte [ 0 ] ) ; MessagingService . getMessagingInstance ( ) . sendOneWay ( doneMessage , message . getFrom ( ) ) ; } catch ( IOException ex ) { Table . logger_ . info ( LogUtil . throwableToString ( ex ) ) ; } } private Map < String , String > getNewNames ( StreamContextManager [ ] streamContexts ) { } private void addStreamContext ( String host , StreamContextManager . StreamContext streamContext , StreamContextManager . StreamStatus streamStatus ) { } } private static Logger logger_ = Logger . getLogger ( Table . class ) ; public static final String recycleBin_ = "RecycleColumnFamily" ; public static final String hints_ = "HintsColumnFamily" ; private static Lock createLock_ = new ReentrantLock ( ) ; private static Map < String , Table > instances_ = new HashMap < String , Table > ( ) ; private String table_ ; private Table . TableMetadata tableMetadata_ ; private Map < String , ColumnFamilyStore > columnFamilyStores_ = new HashMap < String , ColumnFamilyStore > ( ) ; private DBAnalyticsSource dbAnalyticsSource_ ; private SortedSet < String > applicationColumnFamilies_ ; public static Table open ( String table ) { } public Set < String > getColumnFamilies ( ) { } Map < String , ColumnFamilyStore > getColumnFamilyStores ( ) { } public ColumnFamilyStore getColumnFamilyStore ( String cfName ) { } String getColumnFamilyType ( String cfName ) { } public String tableStats ( String newLineSeparator , DecimalFormat df ) { } void onStart ( ) throws IOException { } public void forceCleanup ( ) { } public void clearSnapshot ( ) { } public boolean forceCompaction ( List < Range > ranges , EndPoint target , List < String > fileList ) { } public void forceCompaction ( ) { } public List < String > getAllSSTablesOnDisk ( ) { } private Table ( String table ) { } String getTableName ( ) { } boolean isApplicationColumnFamily ( String columnFamily ) { } int getNumberOfColumnFamilies ( ) { } int getColumnFamilyId ( String columnFamily ) { } String getColumnFamilyName ( int id ) { } boolean isValidColumnFamily ( String columnFamily ) { }

Fix:
String file = ( ( ( DatabaseDescriptor . getDataFileLocation ( ) ) + ( File . separator ) ) + newFileName ) + "-Data.db" ;