Buggy code:
private static boolean thriftFramed_ = false ; private static InetAddress listenAddress_ ; private static InetAddress thriftAddress_ ; private static String clusterName_ = "Test" ; private static int replicationFactor_ = 3 ; private static long rpcTimeoutInMillis_ = 2000 ; private static Set < InetAddress > seeds_ = new HashSet < InetAddress > ( ) ; private static String [ ] dataFileDirectories_ ; private static int currentIndex_ = 0 ; private static String logFileDirectory_ ; private static int consistencyThreads_ = 4 ; private static int concurrentReaders_ = 8 ; private static int concurrentWriters_ = 32 ; private static double flushDataBufferSizeInMB_ = 32 ; private static double flushIndexBufferSizeInMB_ = 8 ; private static int slicedReadBufferSizeInKB_ = 64 ; private static List < String > tables_ = new ArrayList < String > ( ) ; private static Set < String > applicationColumnFamilies_ = new HashSet < String > ( ) ; private static int bmtThreshold_ = 256 ; private static Map < Pair < String , String > , Double > tableKeysCachedFractions_ = new HashMap < Pair < String , String > , Double > ( ) ; private static Map < Pair < String , String > , Double > tableRowsCachedFractions_ = new HashMap < Pair < String , String > , Double > ( ) ; private static Map < String , Map < String , CFMetaData > > tableToCFMetaDataMap_ ; private static IPartitioner partitioner_ ; private static IEndPointSnitch endPointSnitch_ ; private static Class < AbstractReplicationStrategy > replicaPlacementStrategyClass_ ; private static int columnIndexSizeInKB_ ; private static int memtableLifetimeMs_ = ( 60 * 60 ) * 1000 ; private static int memtableThroughput_ = 64 ; private static double memtableOperations_ = 0.1 ; private static boolean doConsistencyCheck_ = true ; private static String jobJarFileLocation_ ; private static String jobTrackerHost_ ; private static int gcGraceInSeconds_ = ( 10 * 24 ) * 3600 ; private static String configFileName_ ; private static String initialToken_ = null ; private static DatabaseDescriptor . CommitLogSync commitLogSync_ ; private static double commitLogSyncBatchMS_ ; private static int commitLogSyncPeriodMS_ ; private static DatabaseDescriptor . DiskAccessMode diskAccessMode_ ; private static DatabaseDescriptor . DiskAccessMode indexAccessMode_ ; private static boolean snapshotBeforeCompaction_ ; private static boolean autoBootstrap_ = false ; public static boolean isThriftFramed ( ) { } private static AbstractType getComparator ( Node columnFamily , String attr ) throws IllegalAccessException , InstantiationException , NoSuchMethodException , InvocationTargetException , TransformerException , DatabaseDescriptor . ConfigurationException { } public static void createAllDirectories ( ) throws IOException { } public static void storeMetadata ( ) throws IOException { } public static int getGcGraceInSeconds ( ) { } public static IPartitioner getPartitioner ( ) { } public static IEndPointSnitch getEndPointSnitch ( ) { } public static Class < AbstractReplicationStrategy > getReplicaPlacementStrategyClass ( ) { } public static String getJobTrackerAddress ( ) { } public static int getColumnIndexSize ( ) { } public static int getMemtableLifetimeMS ( ) { } public static String getInitialToken ( ) { } public static int getMemtableThroughput ( ) { } public static double getMemtableOperations ( ) { } public static boolean getConsistencyCheck ( ) { } public static String getClusterName ( ) { } public static String getConfigFileName ( ) { } public static boolean isApplicationColumnFamily ( String columnFamily ) { } public static String getJobJarLocation ( ) { } public static Map < String , CFMetaData > getTableMetaData ( String tableName ) { } public static CFMetaData getCFMetaData ( String tableName , String cfName ) { } public static String getColumnType ( String tableName , String cfName ) { } public static List < String > getTables ( ) { } public static String getTable ( String tableName ) { } public static int getStoragePort ( ) { } public static int getControlPort ( ) { } public static int getThriftPort ( ) { } public static int getReplicationFactor ( ) { } public static int getQuorum ( ) { } public static long getRpcTimeout ( ) { } public static int getConsistencyThreads ( ) { } public static int getConcurrentReaders ( ) { } public static int getConcurrentWriters ( ) { } public static String [ ] getAllDataFileLocations ( ) { } public static String [ ] getAllDataFileLocationsForTable ( String table ) { } public static String getDataFileLocationForTable ( String table ) { } public static String getLogFileLocation ( ) { } public static Set < InetAddress > getSeeds ( ) { } public static String getColumnFamilyType ( String tableName , String cfName ) { } public static String getDataFileLocationForTable ( String table , long expectedCompactedFileSize ) { } public static AbstractType getComparator ( String tableName , String cfName ) { } public static AbstractType getSubComparator ( String tableName , String cfName ) { } public static Map < String , Map < String , CFMetaData > > getTableToColumnFamilyMap ( ) { } public static double getKeysCachedFraction ( String tableName , String columnFamilyName ) { } public static double getRowsCachedFraction ( String tableName , String columnFamilyName ) { Double v = DatabaseDescriptor . tableRowsCachedFractions_ . get ( Pair . create ( tableName , columnFamilyName ) ) ; <START_BUG> return v == null ? 0.01 : v ; <END_BUG> } private static class ConfigurationException extends Exception { public ConfigurationException ( String message ) { } } public static InetAddress getListenAddress ( ) { } public static InetAddress getThriftAddress ( ) { } public static double getCommitLogSyncBatchWindow ( ) { } public static int getCommitLogSyncPeriod ( ) { } public static DatabaseDescriptor . CommitLogSync getCommitLogSync ( ) { } public static DatabaseDescriptor . DiskAccessMode getDiskAccessMode ( ) { } public static DatabaseDescriptor . DiskAccessMode getIndexAccessMode ( ) { } public static double getFlushDataBufferSizeInMB ( ) { } public static double getFlushIndexBufferSizeInMB ( ) { } public static int getIndexedReadBufferSizeInKB ( ) { } public static int getSlicedReadBufferSizeInKB ( ) { } public static int getBMTThreshold ( ) { } public static boolean isSnapshotBeforeCompaction ( ) { } public static boolean isAutoBootstrap ( ) { } static void setReplicationFactorUnsafe ( int factor ) { } }

Fix:
return v == null ? 0 : v ;