Buggy code:
public final class ResourceTree extends JPanel implements ActionListener , TreeSelectionListener { private final JButton bnext = new JButton ( "Forward" , Icons . getIcon ( "Forward16.gif" ) ) ; private final JButton bprev = new JButton ( "Back" , Icons . getIcon ( "Back16.gif" ) ) ; private final JTree tree = new JTree ( ) ; private final Stack < ResourceEntry > nextstack = new Stack < ResourceEntry > ( ) ; private final Stack < ResourceEntry > prevstack = new Stack < ResourceEntry > ( ) ; private ResourceEntry prevnextnode ; private ResourceEntry shownresource ; private boolean showresource = true ; public ResourceTree ( ResourceTreeModel treemodel ) { } @ Override public void actionPerformed ( ActionEvent event ) { } @ Override public void valueChanged ( TreeSelectionEvent event ) { } @ Override public boolean requestFocusInWindow ( ) { } public ResourceEntry getSelected ( ) { } public void reloadRenderer ( ) { } public void select ( ResourceEntry entry ) { } public ResourceTreeModel getModel ( ) { } public void setModel ( ResourceTreeModel treemodel ) { } public void expandAll ( ) { } public void collapseAll ( ) { } public void expandSelected ( ) { } public void collapseSelected ( ) { } static void renameResource ( FileResourceEntry entry ) { } static void deleteResource ( ResourceEntry entry ) { if ( entry instanceof FileResourceEntry ) { String [ ] options = new String [ ] { "Delete" , "Cancel" } ; if ( ( JOptionPane . showOptionDialog ( NearInfinity . getInstance ( ) , ( ( "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>delete<seq2seq4repair_space>" + entry ) + '?' ) , "Delete<seq2seq4repair_space>file" , JOptionPane . YES_NO_OPTION , JOptionPane . WARNING_MESSAGE , null , options , options [ 0 ] ) ) != 0 ) return ; NearInfinity . getInstance ( ) . removeViewable ( ) ; ResourceFactory . getResources ( ) . removeResourceEntry ( entry ) ; File bakFile = ResourceTree . getBackupFile ( entry ) ; if ( bakFile != null ) { bakFile . delete ( ) ; } ( ( FileResourceEntry ) ( entry ) ) . deleteFile ( ) ; } else if ( entry instanceof BIFFResourceEntry ) { String [ ] options = new String [ ] { "Delete" , "Cancel" } ; <START_BUG> if ( ( JOptionPane . showOptionDialog ( NearInfinity . getInstance ( ) , ( ( ( "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>delete<seq2seq4repair_space>the<seq2seq4repair_space>" + "override<seq2seq4repair_space>file<seq2seq4repair_space>to<seq2seq4repair_space>" ) + entry ) + '?' ) , "Delete<seq2seq4repair_space>file" , JOptionPane . YES_NO_OPTION , JOptionPane . WARNING_MESSAGE , null , options , options [ 0 ] ) ) != 0 ) <END_BUG> return ; NearInfinity . getInstance ( ) . removeViewable ( ) ; File bakFile = ResourceTree . getBackupFile ( entry ) ; if ( bakFile != null ) { bakFile . delete ( ) ; } ( ( BIFFResourceEntry ) ( entry ) ) . deleteOverride ( ) ; } } static void restoreResource ( ResourceEntry entry ) { } private static void processAllNodes ( JTree tree , TreePath parent , boolean expand ) { } static boolean isBackupAvailable ( ResourceEntry entry ) { } private static File getBackupFile ( ResourceEntry entry ) { } private static File getCurrentFile ( ResourceEntry entry ) { } private static File getTempFile ( File file ) { } private final class TreeKeyListener extends KeyAdapter implements ActionListener { private static final int TIMER_DELAY = 900 ; private String currentkey = "" ; private final Timer timer ; private TreeKeyListener ( ) { } @ Override public void keyTyped ( KeyEvent event ) { } @ Override public void actionPerformed ( ActionEvent event ) { } } private final class TreeMouseListener extends MouseAdapter { private final ResourceTree . TreePopupMenu pmenu = new ResourceTree . TreePopupMenu ( ) ; @ Override public void mousePressed ( MouseEvent e ) { } @ Override public void mouseReleased ( MouseEvent e ) { } private void maybeShowPopup ( MouseEvent e ) { } } private final class TreePopupMenu extends JPopupMenu implements ActionListener { private final JMenuItem mi_open = new JMenuItem ( "Open" ) ; private final JMenuItem mi_opennew = new JMenuItem ( "Open<seq2seq4repair_space>in<seq2seq4repair_space>new<seq2seq4repair_space>window" ) ; private final JMenuItem mi_export = new JMenuItem ( "Export" ) ; private final JMenuItem mi_addcopy = new JMenuItem ( "Add<seq2seq4repair_space>copy<seq2seq4repair_space>of" ) ; private final JMenuItem mi_rename = new JMenuItem ( "Rename" ) ; private final JMenuItem mi_delete = new JMenuItem ( "Delete" ) ; private final JMenuItem mi_restore = new JMenuItem ( "Restore<seq2seq4repair_space>backup" ) ; TreePopupMenu ( ) { } @ Override public void show ( Component invoker , int x , int y ) { } @ Override public void actionPerformed ( ActionEvent event ) { } } private static final class ResourceTreeRenderer extends DefaultTreeCellRenderer { private ResourceTreeRenderer ( ) { } @ Override public Component getTreeCellRendererComponent ( JTree tree , Object o , boolean sel , boolean expanded , boolean leaf , int row , boolean hasFocus ) { } } }

Fix:
if ( ( JOptionPane . showOptionDialog ( NearInfinity . getInstance ( ) , ( ( ( "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>delete<seq2seq4repair_space>the<seq2seq4repair_space>" + "override<seq2seq4repair_space>file<seq2seq4repair_space>" ) + entry ) + '?' ) , "Delete<seq2seq4repair_space>file" , JOptionPane . YES_NO_OPTION , JOptionPane . WARNING_MESSAGE , null , options , options [ 0 ] ) ) != 0 )