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 ( ) ; public static final String version = "1.2" ; static String propertiesVersion = "" ; static final String PROPVERSION = "1.8" ; static String fileVersion = "" ; static final String FILEVERSION = "332818" ; private static void makeAlias ( String alias , String clazz ) { } 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 { } 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 void checkVersions ( ) { SaveService . versionsOK = true ; SaveService . checkVersion ( BooleanPropertyConverter . class , "332820" ) ; SaveService . checkVersion ( HashTreeConverter . class , "332820" ) ; SaveService . checkVersion ( IntegerPropertyConverter . class , "332820" ) ; SaveService . checkVersion ( LongPropertyConverter . class , "332820" ) ; SaveService . checkVersion ( MultiPropertyConverter . class , "332820" ) ; <START_BUG> SaveService . checkVersion ( SampleResultConverter . class , "332820" ) ; <END_BUG> SaveService . checkVersion ( StringPropertyConverter . class , "332820" ) ; SaveService . checkVersion ( TestElementConverter . class , "332820" ) ; SaveService . checkVersion ( TestElementPropertyConverter . class , "332820" ) ; SaveService . checkVersion ( ScriptWrapperConverter . class , "332820" ) ; SaveService . checkVersion ( TestResultWrapperConverter . class , "332820" ) ; 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" ) ; } } 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 ) { } }

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