Buggy code:
public class Inventory implements Serializable { private static final long serialVersionUID = 1L ; private enum Option { ITEMS , GEAR , LEVEL ; } private ArrayList < Items > items ; private HashMap < Items , Integer > itemNums ; private int index = ( ( ( items ) != null ) && ( ( items . size ( ) ) >= 0 ) ) ? 0 : - 1 ; private static final int buttonWidth = 200 ; private static final int buttonHeight = 100 ; private static final int margin = ( Inventory . buttonWidth ) + 100 ; private static final int row0 = 200 ; private static final int row1 = 400 ; private static int optionsX = Inventory . margin ; private static Rectangle options = new Rectangle ( Inventory . optionsX , Inventory . row0 , Inventory . buttonWidth , Inventory . buttonHeight ) ; private static int levelX = ( Statics . BOARD_WIDTH ) - ( ( ( Inventory . margin ) * 2 ) + 100 ) ; private static Rectangle level = new Rectangle ( Inventory . levelX , Inventory . row0 , ( ( Inventory . buttonWidth ) + 100 ) , Inventory . buttonHeight ) ; private static int viewX = Inventory . margin ; private static Rectangle view = new Rectangle ( Inventory . viewX , Inventory . row1 , Inventory . buttonWidth , Inventory . buttonHeight ) ; private static int itemX = ( Statics . BOARD_WIDTH ) - ( ( ( Inventory . margin ) * 2 ) + 50 ) ; private static Rectangle item = new Rectangle ( Inventory . itemX , Inventory . row1 , ( ( Inventory . buttonWidth ) + 75 ) , Inventory . buttonHeight ) ; private int money = 0 ; public int getMoney ( ) { } public void setMoney ( int money ) { } public void addMoney ( int money ) { } public void spendMoney ( int money ) { } public int getDigits ( ) { } private transient Board owner ; public Inventory ( Board owner ) { } public Inventory ( Board owner , BufferedReader reader ) { } public void draw ( Graphics2D g2d ) { } public void mouseClick ( MouseEvent m ) { } public void addItem ( Items type , int num ) { } public void selectItem ( ) { } public void showInventory ( Inventory . Option o ) { } public class InventoryView extends JDialog { private static final long serialVersionUID = 1L ; private JScrollPane scrollPane ; private JList < String > jList ; private JButton b ; private static final int buttonHeight = 100 ; public InventoryView ( JFrame parent , Inventory . Option which ) { } private JDialog getMe ( ) { } } private String [ ] getKeys ( HashMap < Items , Integer > itemNums , ArrayList < Items > items , boolean showVals , boolean showOnlyThrowable ) { ArrayList < String > toReturn = new ArrayList < String > ( ) ; Items w ; for ( int i = 0 ; i < ( items . size ( ) ) ; i ++ ) { w = items . get ( i ) ; <START_BUG> if ( ( ( itemNums . get ( w ) ) > 0 ) && ( ( ! showOnlyThrowable ) || ( w . isThrowable ( ) ) ) ) <END_BUG> toReturn . add ( ( ( w . toString ( ) ) + ( showVals ? "<seq2seq4repair_space>x" + ( itemNums . get ( w ) ) : "" ) ) ) ; } String [ ] s = new String [ toReturn . size ( ) ] ; for ( int i = 0 ; i < ( toReturn . size ( ) ) ; i ++ ) s [ i ] = toReturn . get ( i ) ; return s ; } public Items getItem ( ) { } public int getItemNum ( Items key ) { } public Items useItem ( ) { } public void setOwner ( Board board ) { } public boolean contains ( Items item2 ) { } public void decrementItem ( Items key , int by ) { } }

Fix:
if ( ( ( itemNums . get ( w ) ) > 0 ) && ( ( ( ! showOnlyThrowable ) || ( w . isThrowable ( ) ) ) || ( w . isConsumable ( ) ) ) )