super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value == null) { setIcon(null); return this; }
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value == null) { setIcon(null); return this; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/plugins/AttachmentRenderer.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/plugins/StatusRenderer.java
Method name: Component getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) Method name: Component getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int)
Number of AST nodes: 4 Number of AST nodes: 4
1
super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
1
super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
2
            row, column);
2
				row, column);
3
        if (value == null) {
3
		if (value == null) {
4
            setIcon(null);
4
			setIcon(null);
5
            return this;
5
			return this;
6
        }
6
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.8
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    1
    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    1
    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    Preondition Violations
    Super method call super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column); cannot be extracted from method
    Super method call super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column); cannot be extracted from method
    1
    super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    2
    if (value == null)
    2
    if (value == null)
    3
    setIcon(null);
    3
    setIcon(null);
    4
    return this;
    4
    return this;
    Precondition Violations (3)
    Row Violation
    1Super method call super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column); cannot be extracted from method
    2Super method call super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column); cannot be extracted from method
    3Not all possible execution flows end in a return statement