setLayout(new BorderLayout()); topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(fromLabel, BorderLayout.CENTER); topPanel.add(dateLabel, BorderLayout.EAST); centerPanel = new JPanel(); centerPanel.setLayout(new BorderLayout()); centerPanel.add(topPanel, BorderLayout.NORTH); centerPanel.add(subjectLabel, BorderLayout.CENTER); add(statusLabel, BorderLayout.WEST); add(centerPanel, BorderLayout.CENTER); add(flagLabel, BorderLayout.EAST); setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); topPanel.setOpaque(false); centerPanel.setOpaque(false); setOpaque(true);
setLayout(new BorderLayout()); topPanel = new JPanel(); topPanel.setLayout(new BorderLayout()); topPanel.add(fromLabel, BorderLayout.CENTER); topPanel.add(dateLabel, BorderLayout.EAST); centerPanel = new JPanel(); centerPanel.setLayout(new BorderLayout()); centerPanel.add(topPanel, BorderLayout.NORTH); centerPanel.add(subjectLabel, BorderLayout.CENTER); add(statusLabel, BorderLayout.WEST); add(centerPanel, BorderLayout.CENTER); add(flagLabel, BorderLayout.EAST); setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8)); flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4)); topPanel.setOpaque(false); centerPanel.setOpaque(false); setOpaque(true);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/tagging/ResultList.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/search/ResultList.java
Method name: void MyListCellRenderer() Method name: void MyListCellRenderer()
Number of AST nodes: 18 Number of AST nodes: 18
1
setLayout(new BorderLayout());
1
setLayout(new BorderLayout());
2

3
			topPanel = new JPanel();
2
			topPanel = new JPanel();
4
			topPanel.setLayout(new BorderLayout());
3
			topPanel.setLayout(new BorderLayout());
5
			topPanel.add(fromLabel, BorderLayout.CENTER);
4
			topPanel.add(fromLabel, BorderLayout.CENTER);
6
			topPanel.add(dateLabel, BorderLayout.EAST);
5
			topPanel.add(dateLabel, BorderLayout.EAST);
7

8
			centerPanel = new JPanel();
6
			centerPanel = new JPanel();
9
			centerPanel.setLayout(new BorderLayout());
7
			centerPanel.setLayout(new BorderLayout());
10
			centerPanel.add(topPanel, BorderLayout.NORTH);
8
			centerPanel.add(topPanel, BorderLayout.NORTH);
11
			centerPanel.add(subjectLabel, BorderLayout.CENTER);
9
			centerPanel.add(subjectLabel, BorderLayout.CENTER);
12

13
			add(statusLabel, BorderLayout.WEST);
10
			add(statusLabel, BorderLayout.WEST);
14
			add(centerPanel, BorderLayout.CENTER);
11
			add(centerPanel, BorderLayout.CENTER);
15
			add(flagLabel, BorderLayout.EAST);
12
			add(flagLabel, BorderLayout.EAST);
16

17
			setBorder(BorderFactory.createCompoundBorder(lineBorder,
13
			setBorder(BorderFactory.createCompoundBorder(lineBorder,
18
					BorderFactory.createEmptyBorder(2, 2, 2, 2)));
14
					BorderFactory.createEmptyBorder(2, 2, 2, 2)));
19

20
			statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
15
			statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));
21
			flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
16
			flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
22

23
			topPanel.setOpaque(false);
17
			topPanel.setOpaque(false);
24
			centerPanel.setOpaque(false);
18
			centerPanel.setOpaque(false);
25
			setOpaque(true);
19
			setOpaque(true);
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 comparisons259
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements18
    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
    1
    setLayout(new BorderLayout());
    1
    setLayout(new BorderLayout());
    2
    topPanel = new JPanel();
    2
    topPanel = new JPanel();
    3
    topPanel.setLayout(new BorderLayout());
    3
    topPanel.setLayout(new BorderLayout());
    4
    topPanel.add(fromLabel, BorderLayout.CENTER);
    4
    topPanel.add(fromLabel, BorderLayout.CENTER);
    5
    topPanel.add(dateLabel, BorderLayout.EAST);
    5
    topPanel.add(dateLabel, BorderLayout.EAST);
    6
    centerPanel = new JPanel();
    6
    centerPanel = new JPanel();
    7
    centerPanel.setLayout(new BorderLayout());
    7
    centerPanel.setLayout(new BorderLayout());
    8
    centerPanel.add(topPanel, BorderLayout.NORTH);
    8
    centerPanel.add(topPanel, BorderLayout.NORTH);
    9
    centerPanel.add(subjectLabel, BorderLayout.CENTER);
    9
    centerPanel.add(subjectLabel, BorderLayout.CENTER);
    10
    add(statusLabel, BorderLayout.WEST);
    10
    add(statusLabel, BorderLayout.WEST);
    11
    add(centerPanel, BorderLayout.CENTER);
    11
    add(centerPanel, BorderLayout.CENTER);
    12
    add(flagLabel, BorderLayout.EAST);
    12
    add(flagLabel, BorderLayout.EAST);
    13
    setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2)));
    13
    setBorder(BorderFactory.createCompoundBorder(lineBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2)));
    14
    statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
    14
    statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
    14
    statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));
    Differences
    Expression1Expression2Difference
    48LITERAL_VALUE_MISMATCH
    14
    statusLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 8));
    15
    flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
    15
    flagLabel.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));
    16
    topPanel.setOpaque(false);
    16
    topPanel.setOpaque(false);
    17
    centerPanel.setOpaque(false);
    17
    centerPanel.setOpaque(false);
    18
    setOpaque(true);
    18
    setOpaque(true);
    Precondition Violations (0)
    Row Violation