Buggy code:
public class SaveService { private static final XStream saver = new XStream ( ) ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String SAVESERVICE_PROPERTIES_FILE = "//bin//saveservice.properties" ; private static final String SAVESERVICE_PROPERTIES = "saveservice_properties" ; private static final String FILE_FORMAT = "file_format" ; private static final String FILE_FORMAT_TESTPLAN = "file_format.testplan" ; private static final String FILE_FORMAT_TESTLOG = "file_format.testlog" ; private static final String VERSION_2_0 = "2.0" ; private static final String VERSION_2_2 = "2.2" ; public static final String TESTPLAN_FORMAT = JMeterUtils . getPropDefault ( SaveService . FILE_FORMAT_TESTPLAN , JMeterUtils . getPropDefault ( SaveService . FILE_FORMAT , SaveService . VERSION_2_2 ) ) ; public static final String TESTLOG_FORMAT = JMeterUtils . getPropDefault ( SaveService . FILE_FORMAT_TESTLOG , JMeterUtils . getPropDefault ( SaveService . FILE_FORMAT , SaveService . VERSION_2_2 ) ) ; private static final boolean IS_TESTPLAN_FORMAT_20 = SaveService . VERSION_2_0 . equals ( SaveService . TESTPLAN_FORMAT ) ; private static final boolean IS_TESTLOG_FORMAT_20 = SaveService . VERSION_2_0 . equals ( SaveService . TESTLOG_FORMAT ) ; private static final boolean IS_TESTPLAN_FORMAT_22 = SaveService . VERSION_2_2 . equals ( SaveService . TESTPLAN_FORMAT ) ; private static final Properties aliasToClass = new Properties ( ) ; private static final Properties classToAlias = new Properties ( ) ; private static final String VERSION = "1.2" ; private static String propertiesVersion = "" ; private static final String PROPVERSION = "1.8" ; private static String fileVersion = "" ; private static final String FILEVERSION = "408187" ; private static void makeAlias ( String alias , String clazz ) { } public static Properties loadProperties ( ) throws IOException { } private static void initProps ( ) { } public static String aliasToClass ( String s ) { } public static String classToAlias ( String s ) { } public static void saveTree ( HashTree tree , Writer writer ) throws Exception { } public static void saveElement ( Object el , Writer writer ) throws Exception { } public static Object loadElement ( InputStream in ) throws Exception { } public static Object loadElement ( Reader in ) throws Exception { } public static synchronized void saveSampleResult ( SampleResult res , Writer writer ) throws Exception { } public static synchronized void saveTestElement ( TestElement elem , Writer writer ) throws Exception { } private static boolean versionsOK = true ; private static final String REVPFX = "$Revision:<seq2seq4repair_space>" ; private static final String REVSFX = "<seq2seq4repair_space>$" ; private static String extractVersion ( String rev ) { } private static void checkVersion ( Class clazz , String expected ) { } static boolean checkPropertyVersion ( ) { } static boolean checkFileVersion ( ) { } static boolean checkVersions ( ) { SaveService . versionsOK = true ; SaveService . checkVersion ( BooleanPropertyConverter . class , "493779" ) ; SaveService . checkVersion ( HashTreeConverter . class , "493779" ) ; SaveService . checkVersion ( IntegerPropertyConverter . class , "493779" ) ; SaveService . checkVersion ( LongPropertyConverter . class , "493779" ) ; SaveService . checkVersion ( MultiPropertyConverter . class , "493779" ) ; <START_BUG> SaveService . checkVersion ( SampleResultConverter . class , "498477" ) ; <END_BUG> try { SaveService . checkVersion ( Class . forName ( "org.apache.jmeter.protocol.http.util.HTTPResultConverter" ) , "493789" ) ; } catch ( ClassNotFoundException e ) { SaveService . versionsOK = false ; SaveService . log . warn ( e . getLocalizedMessage ( ) ) ; } SaveService . checkVersion ( StringPropertyConverter . class , "493779" ) ; SaveService . checkVersion ( TestElementConverter . class , "493779" ) ; SaveService . checkVersion ( TestElementPropertyConverter . class , "493779" ) ; SaveService . checkVersion ( ScriptWrapperConverter . class , "493779" ) ; SaveService . checkVersion ( TestResultWrapperConverter . class , "493779" ) ; SaveService . checkVersion ( SampleSaveConfigurationConverter . class , "493779" ) ; if ( ! ( SaveService . PROPVERSION . equalsIgnoreCase ( SaveService . propertiesVersion ) ) ) { SaveService . log . warn ( ( ( ( ( "Bad<seq2seq4repair_space>_version<seq2seq4repair_space>-<seq2seq4repair_space>expected<seq2seq4repair_space>" + ( SaveService . PROPVERSION ) ) + ",<seq2seq4repair_space>found<seq2seq4repair_space>" ) + ( SaveService . propertiesVersion ) ) + "." ) ) ; } if ( ! ( SaveService . FILEVERSION . equalsIgnoreCase ( SaveService . fileVersion ) ) ) { SaveService . log . warn ( ( ( ( ( "Bad<seq2seq4repair_space>_file_version<seq2seq4repair_space>-<seq2seq4repair_space>expected<seq2seq4repair_space>" + ( SaveService . FILEVERSION ) ) + ",<seq2seq4repair_space>found<seq2seq4repair_space>" ) + ( SaveService . fileVersion ) ) + "." ) ) ; } if ( SaveService . versionsOK ) { SaveService . log . info ( "All<seq2seq4repair_space>converter<seq2seq4repair_space>versions<seq2seq4repair_space>present<seq2seq4repair_space>and<seq2seq4repair_space>correct" ) ; } return SaveService . versionsOK ; } public static TestResultWrapper loadTestResults ( InputStream reader ) throws Exception { } public static HashTree loadTree ( InputStream reader ) throws Exception { } public static boolean isSaveTestPlanFormat20 ( ) { } public static boolean isSaveTestLogFormat20 ( ) { } public static boolean isSaveTestPlanFormat22 ( ) { } public static String CEtoString ( ConversionException ce ) { } public static String getPropertiesVersion ( ) { } public static String getVERSION ( ) { } }

Fix:
SaveService . checkVersion ( SampleResultConverter . class , "501270" ) ;