Buggy code:
final class Persistence { static final String PACKAGE_BASE = "commands" ; static final String PACKAGE_FULL = "org.eclipse.ui." + ( Persistence . PACKAGE_BASE ) ; static final String TAG_ACTIVE_KEY_CONFIGURATION = "activeKeyConfiguration" ; static final String TAG_CATEGORY = "category" ; static final String TAG_CATEGORY_ID = "categoryId" ; static final String TAG_COMMAND = "command" ; static final String TAG_COMMAND_ID = "commandId" ; static final String TAG_CONTEXT_BINDING = "contextBinding" ; static final String TAG_CONTEXT_ID = "contextId" ; static final String TAG_DESCRIPTION = "description" ; static final String TAG_HELP_ID = "helpId" ; static final String TAG_IMAGE_BINDING = "imageBinding" ; static final String TAG_IMAGE_STYLE = "imageStyle" ; static final String TAG_IMAGE_URI = "imageUri" ; static final String TAG_KEY_BINDING = "keyBinding" ; static final String TAG_KEY_CONFIGURATION = "keyConfiguration" ; static final String TAG_KEY_CONFIGURATION_ID = "keyConfigurationId" ; static final String TAG_KEY_SEQUENCE = "keySequence" ; static final String TAG_ID = "id" ; static final String TAG_LOCALE = "locale" ; static final String TAG_NAME = "name" ; static final String TAG_PARENT_ID = "parentId" ; static final String TAG_PLATFORM = "platform" ; static final String TAG_PLUGIN_ID = "pluginId" ; static IActiveKeyConfigurationDefinition readActiveKeyConfigurationDefinition ( IMemento memento , String pluginIdOverride ) { } static List readActiveKeyConfigurationDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static ICategoryDefinition readCategoryDefinition ( IMemento memento , String pluginIdOverride ) { } static List readCategoryDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static ICommandDefinition readCommandDefinition ( IMemento memento , String pluginIdOverride ) { } static List readCommandDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static IContextBindingDefinition readContextBindingDefinition ( IMemento memento , String pluginIdOverride ) { } static List readContextBindingDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static IImageBindingDefinition readImageBindingDefinition ( IMemento memento , String pluginIdOverride ) { } static List readImageBindingDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static IKeyBindingDefinition readKeyBindingDefinition ( IMemento memento , String pluginIdOverride ) { } static List readKeyBindingDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static IKeyConfigurationDefinition readKeyConfigurationDefinition ( IMemento memento , String pluginIdOverride ) { } static List readKeyConfigurationDefinitions ( IMemento memento , String name , String pluginIdOverride ) { } static void writeActiveKeyConfigurationDefinition ( IMemento memento , IActiveKeyConfigurationDefinition activeKeyConfigurationDefinition ) { } static void writeActiveKeyConfigurationDefinitions ( IMemento memento , String name , List activeKeyConfigurationDefinitions ) { } static void writeCategoryDefinition ( IMemento memento , ICategoryDefinition categoryDefinition ) { } static void writeCategoryDefinitions ( IMemento memento , String name , List categoryDefinitions ) { } static void writeCommandDefinition ( IMemento memento , ICommandDefinition commandDefinition ) { } static void writeCommandDefinitions ( IMemento memento , String name , List commandDefinitions ) { } static void writeContextBindingDefinition ( IMemento memento , IContextBindingDefinition contextBindingDefinition ) { } static void writeContextBindingDefinitions ( IMemento memento , String name , List contextBindingDefinitions ) { } static void writeImageBindingDefinition ( IMemento memento , IImageBindingDefinition imageBindingDefinition ) { } static void writeImageBindingDefinitions ( IMemento memento , String name , List imageBindingDefinitions ) { } static void writeKeyBindingDefinition ( IMemento memento , IKeyBindingDefinition keyBindingDefinition ) { } static void writeKeyBindingDefinitions ( IMemento memento , String name , List keyBindingDefinitions ) { } static void writeKeyConfigurationDefinition ( IMemento memento , IKeyConfigurationDefinition keyConfigurationDefinition ) { } static void writeKeyConfigurationDefinitions ( IMemento memento , String name , List keyConfigurationDefinitions ) { } private static final String ALT = "Alt" ; private static final String COMMAND = "Command" ; private static final String CTRL = "Ctrl" ; private static final String MODIFIER_SEPARATOR = "+" ; private static final String SHIFT = "Shift" ; private static final String STROKE_SEPARATOR = "<seq2seq4repair_space>" ; private static Map stringToValueMap = new TreeMap ( ) ; private static KeySequence deprecatedSequenceToKeySequence ( int [ ] sequence ) { } private static KeyStroke deprecatedStrokeToKeyStroke ( int stroke ) { <START_BUG> return KeySupport . convertFromSWT ( stroke ) ; <END_BUG> } public static int [ ] parseDeprecatedSequence ( String string ) { } public static int parseDeprecatedStroke ( String string ) { } private static int [ ] readDeprecatedSequence ( IMemento memento ) { } private static int readDeprecatedStroke ( IMemento memento ) { } private Persistence ( ) { } }

Fix:
return KeySupport . convertAcceleratorToKeyStroke ( stroke ) ;