Buggy code:
public class JMeterUtils implements UnitTestManager { private static Logger log = LoggingManager . getLoggerForClass ( ) ; private static PatternCacheLRU patternCache = new PatternCacheLRU ( JMeterUtils . getPropDefault ( "oro.patterncache.size" , 1000 ) , new Perl5Compiler ( ) ) ; private static final String EXPERT_MODE_PROPERTY = "jmeter.expertMode" ; private static Properties appProperties ; private static Vector localeChangeListeners = new Vector ( ) ; private static Locale locale ; private static ResourceBundle resources ; private static ThreadLocal localMatcher = new ThreadLocal ( ) { protected Object initialValue ( ) { } } ; private static Random rand = new Random ( ) ; public static Perl5Matcher getMatcher ( ) { } public static Properties getProperties ( String file ) { } public static void initLogging ( ) { } public static void initLocale ( ) { } public static void loadJMeterProperties ( String file ) { } public static Properties loadProperties ( String file ) { } public static PatternCacheLRU getPatternCache ( ) { } public static Pattern getPattern ( String expression ) { } public static Pattern getPattern ( String expression , int options ) { } public void initializeProperties ( String file ) { } public static String [ ] getSearchPaths ( ) { } public static int getRandomInt ( int r ) { } public static void setLocale ( Locale loc ) { } public static Locale getLocale ( ) { } public static void addLocaleChangeListener ( LocaleChangeListener listener ) { } public static void removeLocaleChangeListener ( LocaleChangeListener listener ) { } private static void notifyLocaleChangeListeners ( ) { } public static String getResString ( String key ) { } public static final String RES_KEY_PFX = "[res_key=" ; public static String getResString ( String key , String defaultValue ) { } private static String getResStringDefault ( String key , String defaultValue ) { } public static Properties getJMeterProperties ( ) { } public static ImageIcon getImage ( String name ) { } public static ImageIcon getImage ( String name , String description ) { } public static String getResourceFileAsText ( String name ) { } public static Vector getTimers ( Properties properties ) { } public static Vector getVisualizers ( Properties properties ) { } public static Vector getControllers ( Properties properties ) { } public static String [ ] getTestSamples ( Properties properties , String name ) { } public static XMLReader getXMLParser ( ) { } public static Hashtable getAlias ( Properties properties ) { } public static Vector getVector ( Properties properties , String name ) { } public static Hashtable getHashtable ( Properties properties , String name ) { } public static int getPropDefault ( String propName , int defaultVal ) { } public static boolean getPropDefault ( String propName , boolean defaultVal ) { boolean ans ; try { <START_BUG> String strVal = JMeterUtils . appProperties . getProperty ( propName , JOrphanUtils . booleanToString ( defaultVal ) ) . trim ( ) ; <END_BUG> if ( ( strVal . equalsIgnoreCase ( "true" ) ) || ( strVal . equalsIgnoreCase ( "t" ) ) ) { ans = true ; } else if ( ( strVal . equalsIgnoreCase ( "false" ) ) || ( strVal . equalsIgnoreCase ( "f" ) ) ) { ans = false ; } else { ans = ( Integer . valueOf ( strVal ) . intValue ( ) ) == 1 ; } } catch ( Exception e ) { ans = defaultVal ; } return ans ; } public static long getPropDefault ( String propName , long defaultVal ) { } public static String getPropDefault ( String propName , String defaultVal ) { } public static String getProperty ( String propName ) { } public static Object setProperty ( String propName , String propValue ) { } public static void selJComboBoxItem ( Properties properties , JComboBox combo , Vector namVec , String name ) { } public static Object instantiate ( String className , String impls ) { } public static Vector instantiate ( Vector v , String className ) { } public static Vector tokenize ( String string , String separator ) { } public static JButton createButton ( String name , ActionListener listener ) { } public static JButton createSimpleButton ( String name , ActionListener listener ) { } public static void reportErrorToUser ( String errorMsg ) { } public static int findInArray ( String [ ] array , String value ) { } public static String unsplit ( Object [ ] splittee , Object splitChar ) { } public static String unsplit ( Object [ ] splittee , Object splitChar , String def ) { } public static String getJMeterHome ( ) { } public static void setJMeterHome ( String home ) { } private static String jmDir ; public static String getJMeterVersion ( ) { } public static String getJMeterCopyright ( ) { } public static String getExtendedFrameTitle ( String fname ) { } public static boolean isExpertMode ( ) { } public static File findFile ( String fileName ) { } }

Fix:
String strVal = JMeterUtils . appProperties . getProperty ( propName , Boolean . toString ( defaultVal ) ) . trim ( ) ;