Buggy code:
public static final String EMAIL_REGEX = "^[\\w\\-]([\\.\\w])+[\\w]+@([\\w\\-]+\\.)+[A-Z]{2,4}$" ; public static final String REGEX_ALFA_TEXT_WITH_WHITE = "^[a-zA-Z][a-zA-Z\\s]*[a-zA-Z]$|" + ( "^[a-zA-Z]+[a-zA-Z]*$|" + "^[a-zA-Z]$" ) ; public static final Pattern azAZ = Pattern . compile ( "[a-zA-Z]?" ) ; public static final Pattern _09 = Pattern . compile ( "[0-9]?" ) ; public static final Pattern azAZ09 = Pattern . compile ( "[a-zA-Z_0-9]?" ) ; public static final int ROW_LIMIT = 1000 ; public static final String TIME_ZONE = "GMT-03:00" ; public static final SimpleDateFormat yyyy_MM_dd ; public static final SimpleDateFormat DATE_FORMAT ; public static final SimpleDateFormat TIME_FORMAT ; public static final SimpleDateFormat TIMESTAMP_FORMAT ; public static final DecimalFormat DECIMAL_FORMAT ; public static DecimalFormat PRECIO_CON_PUNTO ; public static final String [ ] IMAGEN_EXTENSION = new String [ ] { "jpeg" , "jpg" , "gif" , "tiff" , "tif" , "png" , "bmp" } ; public static final int MAX_IMAGEN_FILE_SIZE = 1048576 ; public static SimpleDateFormat instanceOfDATE_FORMAT ( ) { } public static SimpleDateFormat instanceOfTIME_FORMAT ( ) { } public static byte [ ] getBytesFromFile ( File file ) throws IOException { } public static void setImageAsIconLabel ( JLabel label , byte [ ] imageInByte ) throws IOException { } public static JLabel setImageAsIconLabel ( JLabel label , File imageFile ) throws IOException { } public static void controlSizeFile ( File file , int size ) { } public static int compararIgnorandoTimeFields ( Date d1 , Date d2 ) { } public static File imageToFile ( byte [ ] img , String extension ) throws IOException { } public static boolean isImagenExtension ( File imageFile ) { } public static void VALIDAR_CUIL ( String cuil ) throws IllegalArgumentException , NumberFormatException { } public static DefaultTableModel getDtm ( JTable jtable ) { } public static JTable getDefaultTableModel ( JTable tabla , String [ ] columnNames ) { } public static JTable getDefaultTableModel ( JTable tabla , String [ ] columnNames , int [ ] columnWidths , Class [ ] columnClassType , int [ ] editableColumns ) { } public static JTable getDefaultTableModel ( JTable tabla , String [ ] columnNames , int [ ] columnWidths , Class [ ] columnClassType ) { } public static JTable getDefaultTableModel ( JTable tabla , String [ ] columnNames , int [ ] columnWidths ) { } public static DefaultTableModel setColumnNames ( DefaultTableModel dtm , String [ ] columnNames ) { } public static boolean hasta2Decimales ( String monto ) { } public static Date customDate ( int year , int month , Integer day ) throws Exception { } public static Date customDate ( Date fecha , int year , int month , int days ) { } public static Date getDateYYYYMMDD ( Date fecha ) { } public static Date customDateByDays ( Date fecha , int dias ) { } public static String getExtensionFile ( String fileName ) { } public static void borrarFile ( String pathName ) { } public static int countChacarter ( String cadena , char candidate ) { } public static void soloNumeros ( KeyEvent evt ) { } public static void solo_numeros_y_un_punto ( final String cadena , KeyEvent e ) { } public static void solo_numeros_y_un_punto ( KeyEvent evt ) { } public static Double parseToDouble ( String s ) { } public static String ESTADO_TO_STRING ( int estado ) { } public static String TO_UPPER_CASE ( String unString ) { } public static char TO_UPPER_CASE ( char letra ) { } public static void hideColumnsTable ( JTable jTable , int [ ] columnsIndex ) { } public static void hideColumnTable ( JTable jTable , String columnName ) { } public static void hideColumnTable ( JTable jTable , int columnIndex ) { } public static int setSelectedItem ( JComboBox combo , String candidato ) { } public static int setSelectedItem ( JComboBox combo , Object candidato ) { } public static void loadComboBox ( JComboBox comboBox , List objectList , boolean elegible , String itemWhenIsEmpty ) { } public static void loadComboBox ( JComboBox comboBox , List objectList , boolean elegible ) { } public static void loadComboBox ( JComboBox comboBox , List objectList , String firstItem , String itemWhenIsEmpty ) { } public static void loadComboBox ( JComboBox comboBox , List objectList , String message1stItem ) { } public static void order ( List lista , final String propiedad , final boolean ascending ) { } public static String AGREGAR_CEROS ( String cadena , int longitudMaxima ) { } public static String AGREGAR_CEROS ( long numero , int longitudMaxima ) { } public static Double getPorcentaje ( double monto , double porcentaje ) { } public static void limpiarDtm ( JTable table ) { } public static void limpiarDtm ( DefaultTableModel dtm ) { } public static Object getSelectedValue ( JTable jTable , int indexColumn ) { } public static int removeSelectedRows ( JTable jTable ) { int [ ] selectedRows = jTable . getSelectedRows ( ) ; if ( ( selectedRows . length ) > 0 ) { DefaultTableModel dtm = ( ( DefaultTableModel ) ( jTable . getModel ( ) ) ) ; <START_BUG> for ( int i = ( selectedRows . length ) - 1 ; i >= 0 ; i ++ ) { <END_BUG> dtm . removeRow ( selectedRows [ i ] ) ; } } return selectedRows . length ; } public static void setHorizonalAlignment ( JTable jTable1 , Class < ? > columnClass , int alignment ) { } private static class DefaultTableModelImpl extends DefaultTableModel { private Class [ ] columnTypes = null ; private int [ ] editableColumns = null ; public DefaultTableModelImpl ( ) { } public DefaultTableModelImpl ( Class [ ] columnTypes ) { } public DefaultTableModelImpl ( Class [ ] columnTypes , int [ ] editableColumns ) { } private DefaultTableModelImpl ( int [ ] editableColumns ) { } @ Override public boolean isCellEditable ( int row , int column ) { } @ Override public Class < ? > getColumnClass ( int columnIndex ) { } } public static boolean VALIDAR_EMAIL ( String email ) { } public static boolean VALIDAR_REGEX ( String regex , String stringToEvaluate ) { }

Fix:
for ( int i = ( selectedRows . length ) - 1 ; i >= 0 ; i -- ) {