| Fault Index | File Name | Line No. | Original Code | Mutated Code |
| 1 | CellPoint.java | 30 | row = aRow; | row = aCol; |
| 2 | CellPoint.java | 31 | col = aCol; | row = aRow; |
| 3 | CellPoint.java | 63 | public void incrRow(int x) { this.row += x; } | public void incrRow(int x) { this.row = x; } |
| 4 | CellPoint.java | 68 | public void incrCol(int x) { this.col += x; } | public void incrCol(int x) { this.col = x; } |
| 5 | CellPoint.java | 39 | public int getRow() { return row; } | public int getRow() { return col; } |
| 6 | CellPoint.java | 44 | public int getCol() { return col; } | public int getCol() { return row; } |
| 7 | CellPoint.java | 51 | public void setRow(int row) { this.row = row; } | public void setRow(int row) { this.col = row; } |
| 8 | CellPoint.java | 58 | public void setCol(int col) { this.col = col; } | public void setCol(int col) { this.row = col; } |
| 9 | CellPoint.java | 82 | if (this.row > y.row) { | if (this.row >= y.row) { |
| 10 | CellPoint.java | 83 | return 1; | return -1; |
| 11 | CellPoint.java | 114 | return ((this.row == y.row) && (this.col == y.col)); | return ((this.row == y.col)); |
| 12 | CellRange.java | 93 | return minCorner.getRow(); | return maxCorner.getRow(); |
| 13 | CellRange.java | 93 | return minCorner.getRow(); | return minCorner.getCol(); |
| 14 | CellRange.java | 102 | return maxCorner.getRow(); | return minCorner.getRow(); |
| 15 | CellRange.java | 102 | return maxCorner.getRow(); | return maxCorner.getCol(); |
| 16 | CellRange.java | 111 | return minCorner.getCol(); | return maxCorner.getCol(); |
| 17 | CellRange.java | 111 | return minCorner.getCol(); | return minCorner.getRow(); |
| 18 | CellRange.java | 120 | return maxCorner.getCol(); | return minCorner.getCol(); |
| 19 | CellRange.java | 120 | return maxCorner.getCol(); | return maxCorner.getRow(); |
| 20 | CellRange.java | 129 | return getEndCol() - getStartCol() + 1; | return getEndCol() - getStartCol(); |
| 21 | CellRange.java | 138 | return getEndRow() - getStartRow() + 1; | return getEndRow() - getStartRow(); |
| 22 | CellRange.java | 163 | return maxCorner; | return minCorner; |
| 23 | CellRange.java | 173 | minCorner = new CellPoint(minRow, minCol); | minCorner = new CellPoint(minCol, minCol); |
| 24 | CellRange.java | 174 | maxCorner = new CellPoint(maxRow, maxCol); | maxCorner = new CellPoint(maxRow, maxRow); |
| 25 | CellRange.java | 174 | maxCorner = new CellPoint(maxRow, maxCol); | maxCorner = new CellPoint(minRow, minCol); |
| 26 | UMCell.java | 357 | return (m_refs != null && !m_refs.isEmpty()); | return (m_refs != null); |
| 27 | UMCell.java | 414 | return ((isFormula()) && (m_value instanceof ParserException)); | return ((isFormula()) || (m_value instanceof ParserException)); |
| 28 | Formula.java | 60 | this.col = col; | this.col = row; |
| 29 | Formula.java | 61 | this.row = row; | this.row = col; |
| 30 | Formula.java | 78 | this.col = col; | this.col = row; |
| 31 | Formula.java | 79 | this.row = row; | this.row = col; |
| 32 | Formula.java | 774 | return 1; | return 3; |
| 33 | Formula.java | 780 | return 3; | return 1; |
| 34 | UMCellRenderer.java | 119 | if (isSelected && !hasFocus) | if (isSelected || !hasFocus) |
| 35 | UMCellRenderer.java | 209 | return (column == UMSpreadSheet.m_baseCol-1); | return (column == UMSpreadSheet.m_baseCol); |
| 36 | LinesBorder.java | 84 | case NORTH: return northColor; | case NORTH: return westColor; |
| 37 | LinesBorder.java | 85 | case SOUTH: return southColor; | case SOUTH: return eastColor; |
| 38 | LinesBorder.java | 146 | westThickness = insets.left; | westThickness = insets.right; |
| 39 | LinesBorder.java | 150 | eastThickness = Math.max(eastThickness ,insets.right); | eastThickness = Math.max(eastThickness ,insets.left); |
| 40 | Function.java | 138 | sum += table.getNumericValueAt(i, j).floatValue(); | sum = table.getNumericValueAt(i, j).floatValue(); |
| 41 | Function.java | 138 | sum += table.getNumericValueAt(i, j).floatValue(); | sum += table.getNumericValueAt(j, i).floatValue(); |
| 42 | Function.java | 192 | count += (addr[1].getRow()-addr[0].getRow()+1) * | count = (addr[1].getRow()-addr[0].getRow()+1) * |
| 43 | FunctionsMenuOp.java | 73 | char tempChar = 'A'; | char tempChar = ''; |
| 44 | FunctionsMenuOp.java | 81 | temp += ")"; | temp += "("; |
| 45 | FunctionsMenuOp.java | 82 | tablemodel.doSetValueAt(temp,startRow+numrows-1,startCol+numcols-1); | tablemodel.doSetValueAt(temp,startRow,startCol); |
| 46 | FunctionsMenuOp.java | 113 | temp += tempChar + (Integer.toString(y+startRow+1)); | temp = tempChar + (Integer.toString(y+startRow+1)); |
| 47 | FunctionsMenuOp.java | 140 | temp = temp + ("=MIN("); | temp = temp + ("=MAX("); |
| 48 | FunctionsMenuOp.java | 149 | temp = temp+ ","; | temp = ","; |
| 49 | FunctionsMenuOp.java | 151 | tempChar += (startCol + x -1); | tempChar += (startCol); |
| 50 | FunctionsMenuOp.java | 152 | temp += tempChar + (Integer.toString(y+startRow+1)); | temp = tempChar + (Integer.toString(y+startRow+1)); |
| 51 | FunctionsMenuOp.java | 158 | temp += ")"; | temp = ")"; |
| 52 | FunctionsMenuOp.java | 159 | tablemodel.doSetValueAt(temp,startRow+numrows-1,startCol+numcols-1); | tablemodel.doSetValueAt(temp,startRow,startCol); |
| 53 | FunctionsMenuOp.java | 178 | temp = temp + ("=MAX("); | temp = temp + ("=MIN("); |
| 54 | FunctionsMenuOp.java | 187 | temp = temp+ ","; | temp = ","; |
| 55 | FunctionsMenuOp.java | 189 | tempChar += (startCol + x -1); | tempChar += x; |
| 56 | FunctionsMenuOp.java | 190 | temp += tempChar + (Integer.toString(y+startRow+1)); | temp = tempChar + (Integer.toString(y+startRow+1)); |
| 57 | FunctionsMenuOp.java | 196 | temp += ")"; | temp = ")"; |
| 58 | FunctionsMenuOp.java | 197 | tablemodel.doSetValueAt(temp,startRow+numrows-1,startCol+numcols-1); | tablemodel.doSetValueAt(temp,startRow,startCol); |
| 59 | FunctionsMenuOp.java | 236 | if (count <=1) | if (count < 1) |
| 60 | FunctionsMenuOp.java | 264 | temp = temp + ("=SIN("); | temp = temp + ("=MAX("); |
| 61 | FunctionsMenuOp.java | 275 | tempChar += (startCol + x -1); | tempChar += startCol; |
| 62 | FunctionsMenuOp.java | 282 | temp += ")"; | temp = ")"; |
| 63 | FunctionsMenuOp.java | 283 | if(count <=1) | if(count < 1) |
| 64 | FunctionsMenuOp.java | 313 | temp = temp + ("=COUNT("); | temp = temp + ("=MAX("); |
| 65 | FormatCellsTabs.java | 246 | if (fontStyle.compareTo("Italic") == 0) | if (fontStyle.compareTo("Bold") == 0) |
| 66 | FormatCellsTabs.java | 247 | italic = true; | regular = false; |
| 67 | FormatCellsTabs.java | 248 | if (fontStyle.compareTo("Regular") == 0) | if (fontStyle.compareTo("Bold") == 0) |
| 68 | FormatCellsTabs.java | 249 | regular = true; | regular = false; |
| 69 | FormatCellsTabs.java | 277 | m_dialog.setVisible(false); | m_dialog.setVisible(true); |
| 70 | FormatCellsTabs.java | 288 | void borderCancelOp() {m_dialog.setVisible(false);} | void borderCancelOp() {m_dialog.setVisible(true);} |
| 71 | FormatCellsTabs.java | 336 | else if (isBold && isItalic) | else if (isBold || isItalic) |
| 72 | FormatCellsTabs.java | 337 | fontStyle = "Italic Bold"; | fontStyle = "Italic"; |
| 73 | FormatCellsTabs.java | 367 | int i = 0 | int i = 1 |
| 74 | FormatCellsTabs.java | 168 | m_noBrdButton.setSelected(false); | m_noBrdButton.setSelected(true); |
| 75 | FormatCellsTabs.java | 177 | m_noBrdButton.setSelected(false); | m_noBrdButton.setSelected(true); |
| 76 | UMDialog.java | 27 | static final public int YES_OPTION = JOptionPane.YES_OPTION; | static final public int YES_OPTION = JOptionPane.NO_OPTION; |
| 77 | UMDialog.java | 29 | static final public int OK_OPTION = JOptionPane.OK_OPTION; | static final public int OK_OPTION = JOptionPane.CANCEL_OPTION; |
| 78 | UMDialog.java | 34 | UMSpreadSheet.getImageIcon("ok.gif"); | UMSpreadSheet.getImageIcon("cancel.gif"); |
| 79 | UMDialog.java | 54 | okButton | cancelButton |
| 80 | UMDialog.java | 57 | cancelButton | yesButton |
| 81 | UMDialog.java | 150 | setVisible(false); | setVisible(true); |
| 82 | UMDialog.java | 280 | choice = OK_OPTION; | choice = CANCEL_OPTION; |
| 83 | UMDialog.java | 288 | if (onCancel()) { | if (onOK()) { |
| 84 | UMDialog.java | 289 | choice = CANCEL_OPTION; | choice = OK_OPTION; |
| 85 | UMDialog.java | 297 | if (onYes()) { | if (onNo()) { |
| 86 | UMDialog.java | 316 | yesButton.setMnemonic (KeyEvent.VK_Y); | yesButton.setMnemonic (KeyEvent.VK_N); |
| 87 | UMDialog.java | 349 | buttons = ok; | buttons = okcancel; |
| 88 | UMDialog.java | 367 | CLOSED_OPTION | CANCEL_OPTION |
| 89 | UMDialog.java | 367 | return choice == CANCEL_OPTION || choice == CLOSED_OPTION; | return choice == CANCEL_OPTION; |
| 90 | UMDialog.java | 267 | if (onClose()) { | if (onOK()) { |
| 91 | UMTableModel.java | 87 | super.setValueAt(new UMCell(""), row, col); | super.setValueAt(new UMCell(""), col, row); |
| 92 | UMTableModel.java | 112 | i <= spreadsheet.m_maxRow; i++) | i < spreadsheet.m_maxRow; i++) |
| 93 | UMTableModel.java | 115 | j <= spreadsheet.m_maxCol; j++) | j < spreadsheet.m_maxCol; j++) |
| 94 | UMTableModel.java | 171 | return getCellAt(aRow, aColumn); | return getCellAt(aRow, aRow); |
| 95 | UMTableModel.java | 360 | lx = ux + table.getSelectedColumnCount() - 1; | lx = ux + table.getSelectedColumnCount(); |
| 96 | UMTableModel.java | 365 | ly = uy + table.getSelectedRowCount() - 1; | ly = uy + table.getSelectedRowCount(); |
| 97 | UMTableModel.java | 369 | return new CellRange(uy,ly, ux,lx, this); | return new CellRange(uy,ly, ux,ly, this); |
| 98 | UMTableModel.java | 384 | for(int row=range.getStartRow(); row<=range.getEndRow();row++) | for(int row=range.getStartRow(); row<range.getEndRow();row++) |
| 99 | UMTableModel.java | 386 | for(int col=range.getStartCol();col<= range.getEndCol();col++) | for(int col=range.getStartCol();col< range.getEndCol();col++) |
| 100 | UMTableModel.java | 512 | UMCell field = getCellAt(update.getRow(), update.getCol()); | UMCell field = getCellAt(update.getRow(), update.getRow()); |