Feature - Implemented Spring cleaning: BuffBotHome/Manager/Frame update

fredg1

Member
Transitions from JList.getSelectedValues() to JList.getSelectedValuesList() (the former is deprecated), and adds Generics to BuffBotHome, BuffBotManager and BuffBotFrame. Tested
 

Attachments

  • BuffBotPatch.patch
    9 KB · Views: 0

fredg1

Member
@heeheehee the only non-generic change here is a transition from
Java:
final Offering[] buffs;

for ( int i = 0; i < buffs.length, ++i )
{
    [...]
    buffs[ i ]
    [...]
}
to
Java:
final List<Offering> buffs

for ( Offering buff : buffs )
{
    [...]
}

Does that really mandate a test? 🥺

Really, though, that one seems like a bit of a pain, with having to learn how to populate the table, use the method to remove elements from it, check its content, and then also removing the file it generates over at buffs/buffbot.xsl, all for such a minor change, so I'm gonna take a chance at getting off the hook on that one...
 

Attachments

  • BuffBotPatch_2.patch
    9 KB · Views: 1
Top