setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); topPanel.setBackground(list.getSelectionBackground()); topPanel.setForeground(list.getSelectionForeground());
setBackground(list.getBackground()); setForeground(list.getForeground()); progressPanel.setBackground(list.getBackground()); progressPanel.setForeground(list.getForeground());
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/GenericResultPanel.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/statusbar/TaskRenderer.java
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean) Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
setBackground(list.getSelectionBackground());
1
setBackground(list.getBackground());
2
				setForeground(list.getSelectionForeground());
2
			setForeground(list.getForeground());
3
				topPanel.setBackground(list.getSelectionBackground());
3
			progressPanel.setBackground(list.getBackground());
4
				topPanel.setForeground(list.getSelectionForeground());
4
			progressPanel.setForeground(list.getForeground());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons16
  1. {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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    setBackground(list.getSelectionBackground());
    2
    setBackground(list.getSelectionBackground());
    6
    setBackground(list.getBackground());
    Differences
    Expression1Expression2Difference
    getSelectionBackgroundgetBackgroundMETHOD_INVOCATION_NAME_MISMATCH
    6
    setBackground(list.getBackground());
    3
    setForeground(list.getSelectionForeground());
    3
    setForeground(list.getSelectionForeground());
    7
    setForeground(list.getForeground());
    Differences
    Expression1Expression2Difference
    getSelectionForegroundgetForegroundMETHOD_INVOCATION_NAME_MISMATCH
    7
    setForeground(list.getForeground());
    4
    topPanel.setBackground(list.getSelectionBackground());
    4
    topPanel.setBackground(list.getSelectionBackground());
    8
    progressPanel.setBackground(list.getBackground());
    Differences
    Expression1Expression2Difference
    getSelectionBackgroundgetBackgroundMETHOD_INVOCATION_NAME_MISMATCH
    topPanelprogressPanelVARIABLE_NAME_MISMATCH
    8
    progressPanel.setBackground(list.getBackground());
    5
    topPanel.setForeground(list.getSelectionForeground());
    5
    topPanel.setForeground(list.getSelectionForeground());
    9
    progressPanel.setForeground(list.getForeground());
    Differences
    Expression1Expression2Difference
    getSelectionForegroundgetForegroundMETHOD_INVOCATION_NAME_MISMATCH
    topPanelprogressPanelVARIABLE_NAME_MISMATCH
    9
    progressPanel.setForeground(list.getForeground());
    Precondition Violations (0)
    Row Violation