Buggy code:
public class ConfigSerializer extends BaseConfig { final Plugin plugin ; final String name ; public ConfigSerializer ( Plugin plugin , File configFile , String name ) { } public MatchParams loadMatchParams ( ) throws ConfigException , InvalidOptionException { } public static MatchParams loadMatchParams ( Plugin plugin , BaseConfig config , String name ) throws ConfigException , InvalidOptionException { } public static MatchParams loadMatchParams ( Plugin plugin , ArenaType at , String name , ConfigurationSection cs ) throws ConfigException , InvalidOptionException { } public static MatchParams loadMatchParams ( Plugin plugin , ArenaType at , String name , ConfigurationSection cs , boolean isNonBaseConfig ) throws ConfigException , InvalidOptionException { } public static VictoryType loadVictoryType ( ConfigurationSection cs ) throws ConfigException { } private static StateGraph loadTransitionOptions ( ConfigurationSection cs , MatchParams mp ) throws InvalidOptionException { } private static void splitOptions ( StateGraph allTops , CompetitionState state , StateOptions tops ) { } private static void loadAnnouncementsOptions ( ConfigurationSection cs , MatchParams mp ) { } private static List < String > loadModules ( ConfigurationSection cs , MatchParams mp ) { } private static void loadBTOptions ( ConfigurationSection cs , MatchParams mp , boolean isNonBaseConfig ) throws ConfigException { } private static void loadGameSize ( ConfigurationSection cs , MatchParams mp , boolean isArena ) { } private static void loadTimes ( ConfigurationSection cs , MatchParams mp ) { } public static int toPositiveSize ( String value ) { } public static int toPositiveSize ( String value , int defValue ) { } public static int toNonNegativeSize ( String value , int defValue ) { } public static int toSize ( String value , int defValue ) { } public static ArenaType getArenaType ( ConfigurationSection cs ) throws ConfigException { } public static Class < ? extends Arena > getArenaClass ( ConfigurationSection cs ) throws ConfigException { } public static ArenaType getArenaGameType ( ConfigurationSection cs ) throws ConfigException { } public static StateOptions getTransitionOptions ( ConfigurationSection cs ) throws IllegalArgumentException , InvalidOptionException { } public static List < CommandLineString > getDoCommands ( List < String > list ) throws InvalidOptionException { } private static void setPermissionSection ( ConfigurationSection cs , String nodeString , StateOptions tops ) throws InvalidOptionException { } public static HashMap < Integer , ArenaClass > getArenaClasses ( ConfigurationSection cs ) { } public static HashMap < Integer , String > getArenaDisguises ( ConfigurationSection cs ) { } public static List < PotionEffect > getEffectList ( ConfigurationSection cs , String nodeString ) { } public static JoinType getJoinType ( ConfigurationSection cs ) { } public void save ( MatchParams params ) { } public static void saveParams ( MatchParams params , ConfigurationSection maincs , boolean isNonBaseConfig ) { } public static List < String > getModuleList ( Collection < ArenaModule > modules ) { } public static List < String > getEnchants ( List < PotionEffect > effects ) { } public static List < String > getItems ( List < ItemStack > items ) { } public static Map < String , Object > getArenaClasses ( Map < Integer , ArenaClass > classes ) { HashMap < String , Object > map = new HashMap < String , Object > ( ) ; for ( Integer teamNumber : classes . keySet ( ) ) { <START_BUG> String teamName = ( teamNumber == ( DEFAULT . intValue ( ) ) ) ? "default" : "team" + teamNumber ; <END_BUG> map . put ( teamName , classes . get ( teamNumber ) . getName ( ) ) ; } return map ; } public static List < String > getDoCommandsStringList ( List < CommandLineString > doCommands ) { } }

Fix:
String teamName = ( teamNumber == ( DEFAULT . intValue ( ) ) ) ? "default" : "team" + ( teamNumber + 1 ) ;