Buggy code:
public CFMetaData rowCacheSize ( double prop ) { } public CFMetaData keyCacheSize ( double prop ) { } public CFMetaData readRepairChance ( double prop ) { } public CFMetaData replicateOnWrite ( boolean prop ) { } public CFMetaData gcGraceSeconds ( int prop ) { } public CFMetaData defaultValidator ( AbstractType prop ) { } public CFMetaData keyValidator ( AbstractType prop ) { } public CFMetaData minCompactionThreshold ( int prop ) { } public CFMetaData maxCompactionThreshold ( int prop ) { } public CFMetaData rowCacheSavePeriod ( int prop ) { } public CFMetaData keyCacheSavePeriod ( int prop ) { } public CFMetaData memTime ( int prop ) { } public CFMetaData memSize ( int prop ) { } public CFMetaData memOps ( double prop ) { } public CFMetaData mergeShardsChance ( double prop ) { } public CFMetaData keyAlias ( ByteBuffer prop ) { } public CFMetaData columnMetadata ( Map < ByteBuffer , ColumnDefinition > prop ) { } public CFMetaData rowCacheProvider ( IRowCacheProvider prop ) { } public CFMetaData ( String keyspace , String name , ColumnFamilyType type , AbstractType comp , AbstractType subcc ) { } private CFMetaData ( String keyspace , String name , ColumnFamilyType type , AbstractType comp , AbstractType subcc , int id ) { } private AbstractType enforceSubccDefault ( ColumnFamilyType cftype , AbstractType subcc ) { } private static String enforceCommentNotNull ( CharSequence comment ) { } private void init ( ) { } private static CFMetaData newSystemMetadata ( String cfName , int cfId , String comment , AbstractType comparator , AbstractType subcc , int memtableThroughPutInMB ) { } public static CFMetaData newIndexMetadata ( CFMetaData parent , ColumnDefinition info , AbstractType columnComparator ) { } public static CFMetaData rename ( CFMetaData cfm , String newName ) { } public static CFMetaData renameTable ( CFMetaData cfm , String ksName ) { } private static CFMetaData copyOpts ( CFMetaData newCFMD , CFMetaData oldCFMD ) { } public static void purge ( CFMetaData cfm ) { } public static String indexName ( String parentCf , ColumnDefinition info ) { } public CfDef deflate ( ) { } public static CFMetaData inflate ( CfDef cf ) { } public String getComment ( ) { } public double getRowCacheSize ( ) { } public double getKeyCacheSize ( ) { } public double getReadRepairChance ( ) { } public double getMergeShardsChance ( ) { } public boolean getReplicateOnWrite ( ) { } public int getGcGraceSeconds ( ) { } public AbstractType getDefaultValidator ( ) { } public AbstractType getKeyValidator ( ) { } public Integer getMinCompactionThreshold ( ) { } public Integer getMaxCompactionThreshold ( ) { } public int getRowCacheSavePeriodInSeconds ( ) { } public int getKeyCacheSavePeriodInSeconds ( ) { } public int getMemtableFlushAfterMins ( ) { } public int getMemtableThroughputInMb ( ) { } public double getMemtableOperationsInMillions ( ) { } public IRowCacheProvider getRowCacheProvider ( ) { } public ByteBuffer getKeyName ( ) { } public Map < ByteBuffer , ColumnDefinition > getColumn_metadata ( ) { } public AbstractType getComparatorFor ( ByteBuffer superColumnName ) { } public boolean equals ( Object obj ) { } public int hashCode ( ) { } private static int nextId ( ) { } public AbstractType getValueValidator ( ByteBuffer column ) { } public static void applyImplicitDefaults ( org . apache . cassandra . thrift . CfDef cf_def ) { } public static CFMetaData fromThrift ( org . apache . cassandra . thrift . CfDef cf_def ) throws ConfigurationException , InvalidRequestException { } public void apply ( CfDef cf_def ) throws ConfigurationException { if ( ! ( cf_def . keyspace . toString ( ) . equals ( ksName ) ) ) <START_BUG> throw new ConfigurationException ( String . format ( "Keyspace<seq2seq4repair_space>mismatch<seq2seq4repair_space>(found<seq2seq4repair_space>%s;<seq2seq4repair_space>expected<seq2seq4repair_space>%s)" , cf_def . keyspace , tableName ) ) ; <END_BUG> if ( ! ( cf_def . name . toString ( ) . equals ( cfName ) ) ) throw new ConfigurationException ( String . format ( "Column<seq2seq4repair_space>family<seq2seq4repair_space>mismatch<seq2seq4repair_space>(found<seq2seq4repair_space>%s;<seq2seq4repair_space>expected<seq2seq4repair_space>%s)" , cf_def . name , cfName ) ) ; if ( ! ( cf_def . id . equals ( cfId ) ) ) throw new ConfigurationException ( String . format ( "Column<seq2seq4repair_space>family<seq2seq4repair_space>ID<seq2seq4repair_space>mismatch<seq2seq4repair_space>(found<seq2seq4repair_space>%s;<seq2seq4repair_space>expected<seq2seq4repair_space>%s)" , cf_def . id , cfId ) ) ; if ( ! ( cf_def . column_type . toString ( ) . equals ( cfType . name ( ) ) ) ) throw new ConfigurationException ( "types<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." ) ; if ( ( comparator ) != ( TypeParser . parse ( cf_def . comparator_type ) ) ) throw new ConfigurationException ( "comparators<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." ) ; if ( ( ( cf_def . subcomparator_type ) == null ) || ( cf_def . subcomparator_type . equals ( "" ) ) ) { if ( ( subcolumnComparator ) != null ) throw new ConfigurationException ( "subcolumncomparators<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." ) ; } else if ( ( subcolumnComparator ) != ( TypeParser . parse ( cf_def . subcomparator_type ) ) ) throw new ConfigurationException ( "subcolumncomparators<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." ) ; CFMetaData . validateMinMaxCompactionThresholds ( cf_def ) ; CFMetaData . validateMemtableSettings ( cf_def ) ; comment = CFMetaData . enforceCommentNotNull ( cf_def . comment ) ; rowCacheSize = cf_def . row_cache_size ; keyCacheSize = cf_def . key_cache_size ; readRepairChance = cf_def . read_repair_chance ; replicateOnWrite = cf_def . replicate_on_write ; gcGraceSeconds = cf_def . gc_grace_seconds ; defaultValidator = TypeParser . parse ( cf_def . default_validation_class ) ; keyValidator = TypeParser . parse ( cf_def . key_validation_class ) ; minCompactionThreshold = cf_def . min_compaction_threshold ; maxCompactionThreshold = cf_def . max_compaction_threshold ; rowCacheSavePeriodInSeconds = cf_def . row_cache_save_period_in_seconds ; keyCacheSavePeriodInSeconds = cf_def . key_cache_save_period_in_seconds ; memtableFlushAfterMins = cf_def . memtable_flush_after_mins ; memtableThroughputInMb = cf_def . memtable_throughput_in_mb ; memtableOperationsInMillions = cf_def . memtable_operations_in_millions ; mergeShardsChance = cf_def . merge_shards_chance ; if ( ( cf_def . row_cache_provider ) != null ) rowCacheProvider = FBUtilities . newCacheProvider ( cf_def . row_cache_provider . toString ( ) ) ; keyAlias = cf_def . key_alias ; Set < ByteBuffer > toRemove = new HashSet < ByteBuffer > ( ) ; Set < ByteBuffer > newColumns = new HashSet < ByteBuffer > ( ) ;

Fix:
throw new ConfigurationException ( String . format ( "Keyspace<seq2seq4repair_space>mismatch<seq2seq4repair_space>(found<seq2seq4repair_space>%s;<seq2seq4repair_space>expected<seq2seq4repair_space>%s)" , cf_def . keyspace , ksName ) ) ;