Buggy code:
public abstract class MinecartManiaSingleContainer implements MinecartManiaInventory { private Inventory inventory ; public MinecartManiaSingleContainer ( Inventory i ) { } public Inventory getInventory ( ) { } public Inventory getBukkitInventory ( ) { } public void updateInventory ( Inventory inventory ) { } public boolean canAddItem ( ItemStack item , Player player ) { } public boolean canAddItem ( ItemStack item ) { } public boolean addItem ( ItemStack item , Player player ) { if ( ! ( canAddItem ( item , player ) ) ) { return false ; } ItemStack [ ] backup = getContents ( ) . clone ( ) ; ItemStack backupItem = new ItemStack ( item . getTypeId ( ) , item . getAmount ( ) , item . getDurability ( ) ) ; int max = MinecartManiaWorld . getMaxStackSize ( item ) ; for ( int i = 0 ; i < ( size ( ) ) ; i ++ ) { if ( ( getItem ( i ) ) != null ) { if ( ( ( item . getTypeId ( ) ) == 373 ) && ( ( getItem ( i ) . getTypeId ( ) ) == ( item . getTypeId ( ) ) ) ) { <START_BUG> MinecartManiaLogger . getInstance ( ) . info ( "[addItem]<seq2seq4repair_space>373:%d<seq2seq4repair_space>=><seq2seq4repair_space>373:%d" , item . getDurability ( ) , getItem ( i ) . getDurability ( ) ) ; <END_BUG> } if ( ( ( getItem ( i ) . getTypeId ( ) ) == ( item . getTypeId ( ) ) ) && ( ( getItem ( i ) . getDurability ( ) ) == ( item . getDurability ( ) ) ) ) { if ( ( ( getItem ( i ) . getAmount ( ) ) + ( item . getAmount ( ) ) ) <= max ) { setItem ( i , new ItemStack ( item . getTypeId ( ) , ( ( getItem ( i ) . getAmount ( ) ) + ( item . getAmount ( ) ) ) , item . getDurability ( ) ) ) ; return true ; } else { int diff = ( ( getItem ( i ) . getAmount ( ) ) + ( item . getAmount ( ) ) ) - max ; setItem ( i , new ItemStack ( item . getTypeId ( ) , max , item . getDurability ( ) ) ) ; item = new ItemStack ( item . getTypeId ( ) , diff , item . getDurability ( ) ) ; } } } } int emptySlot = firstEmpty ( ) ; if ( emptySlot > ( - 1 ) ) { setItem ( emptySlot , item ) ; return true ; } setContents ( backup ) ; item = backupItem ; return false ; } public boolean addItem ( ItemStack item ) { } public boolean addItem ( int type , int amount ) { } public boolean addItem ( int type ) { } public boolean canRemoveItem ( int type , int amount , short durability , Player player ) { } public boolean canRemoveItem ( int type , int amount , short durability ) { } public boolean removeItem ( int type , int amount , short durability , Player player ) { } public boolean removeItem ( int type , int amount , short durability ) { } public boolean removeItem ( int type , int amount ) { } public boolean removeItem ( int type ) { } public ItemStack getItem ( int slot ) { } public void setItem ( int slot , ItemStack item ) { } public int firstEmpty ( ) { } public int size ( ) { } public ItemStack [ ] getContents ( ) { } public void setContents ( ItemStack [ ] contents ) { } public int first ( Material material ) { } public int first ( Item item ) { } public int first ( int type ) { } public int first ( int type , short durability ) { } public int amount ( Item item ) { } public boolean contains ( Material material ) { } public boolean contains ( Item item ) { } public boolean contains ( int type ) { } public boolean contains ( int type , short durability ) { } public boolean isEmpty ( ) { } }

Fix:
System . out . println ( String . format ( "[addItem]<seq2seq4repair_space>373:%d<seq2seq4repair_space>=><seq2seq4repair_space>373:%d" , item . getDurability ( ) , getItem ( i ) . getDurability ( ) ) ) ;