Buggy code:
public String getDescription ( ) { } public ArrayList < String > getAuthors ( ) { } public String getWebsite ( ) { } public boolean isDatabaseEnabled ( ) { } public void setDatabaseEnabled ( boolean database ) { } public List < Permission > getPermissions ( ) { } public PermissionDefault getPermissionDefault ( ) { } public String getClassLoaderOf ( ) { } public String getPrefix ( ) { } @ SuppressWarnings ( "unchecked" ) private void loadMap ( Map < String , Object > map ) throws InvalidDescriptionException { try { name = map . get ( "name" ) . toString ( ) ; if ( ! ( name . matches ( "^[A-Za-z0-9<seq2seq4repair_space>_.-]+$" ) ) ) { throw new InvalidDescriptionException ( ( ( "name<seq2seq4repair_space>'" + ( name ) ) + "'<seq2seq4repair_space>contains<seq2seq4repair_space>invalid<seq2seq4repair_space>characters." ) ) ; } } catch ( NullPointerException ex ) { throw new InvalidDescriptionException ( ex , "name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>defined" ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "name<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } try { version = map . get ( "version" ) . toString ( ) ; } catch ( NullPointerException ex ) { throw new InvalidDescriptionException ( ex , "version<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>defined" ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "version<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } try { main = map . get ( "main" ) . toString ( ) ; if ( main . startsWith ( "org.bukkit." ) ) { throw new InvalidDescriptionException ( "main<seq2seq4repair_space>may<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>within<seq2seq4repair_space>the<seq2seq4repair_space>org.bukkit<seq2seq4repair_space>namespace" ) ; } } catch ( NullPointerException ex ) { throw new InvalidDescriptionException ( ex , "main<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>defined" ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "main<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } if ( map . containsKey ( "commands" ) ) { try { commands = map . get ( "commands" ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "commands<seq2seq4repair_space>are<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "class-loader-of" ) ) { classLoaderOf = map . get ( "class-loader-of" ) . toString ( ) ; } if ( map . containsKey ( "depend" ) ) { try { depend = ( ( ArrayList < String > ) ( map . get ( "depend" ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "depend<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "softdepend" ) ) { try { softDepend = ( ( ArrayList < String > ) ( map . get ( "softdepend" ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "softdepend<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "database" ) ) { try { database = ( ( Boolean ) ( map . get ( "database" ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "database<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "website" ) ) { try { website = ( ( String ) ( map . get ( "website" ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "website<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "description" ) ) { try { description = ( ( String ) ( map . get ( "description" ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "description<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "load" ) ) { try { order = PluginLoadOrder . valueOf ( ( ( String ) ( map . get ( "load" ) ) ) . toUpperCase ( ) . replaceAll ( "\\W" , "" ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "load<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } catch ( IllegalArgumentException ex ) { throw new InvalidDescriptionException ( ex , "load<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>choice" ) ; } } if ( map . containsKey ( "author" ) ) { try { String extra = ( ( String ) ( map . get ( "author" ) ) ) ; authors . add ( extra ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "author<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "authors" ) ) { try { ArrayList < String > extra = ( ( ArrayList < String > ) ( map . get ( "authors" ) ) ) ; authors . addAll ( extra ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "authors<seq2seq4repair_space>are<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "default-permission" ) ) { try { defaultPerm = PermissionDefault . getByName ( ( ( String ) ( map . get ( "default-permission" ) ) ) ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "default-permission<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } catch ( IllegalArgumentException ex ) { throw new InvalidDescriptionException ( ex , "default-permission<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>choice" ) ; } } if ( map . containsKey ( "permissions" ) ) { try { Map < String , Map < String , Object > > perms = ( ( Map < String , Map < String , Object > > ) ( map . get ( "permissions" ) ) ) ; permissions = Permission . loadPermissions ( perms , ( ( "Permission<seq2seq4repair_space>node<seq2seq4repair_space>'%s'<seq2seq4repair_space>in<seq2seq4repair_space>plugin<seq2seq4repair_space>description<seq2seq4repair_space>file<seq2seq4repair_space>for<seq2seq4repair_space>" + ( getFullName ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>invalid" ) , defaultPerm ) ; } catch ( ClassCastException ex ) { throw new InvalidDescriptionException ( ex , "permissions<seq2seq4repair_space>are<seq2seq4repair_space>of<seq2seq4repair_space>wrong<seq2seq4repair_space>type" ) ; } } if ( map . containsKey ( "prefix" ) ) { try { prefix = ( ( String ) ( map . get ( "prefix" ) ) ) ; } catch ( ClassCastException ex ) { <START_BUG> throw new InvalidDescriptionException ( ex , "prefix<seq2seq4repair_space>is<seq2seq4repair_space>f<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>type!" ) ; <END_BUG> } } } private Map < String , Object > saveMap ( ) { } }

Fix:
throw new InvalidDescriptionException ( ex , "prefix<seq2seq4repair_space>is<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>wrong<seq2seq4repair_space>type!" ) ;