c.gridwidth = GridBagConstraints.REMAINDER; authorPanel.add(imageLabel, c); JLabel versionLabel = new JLabel(GlobalResourceLoader.getString( RESOURCE_BUNDLE_PATH, "about", "version")); if (font != null) { font = font.deriveFont(Font.BOLD); versionLabel.setFont(font); } c.gridx = 0; c.gridy = 1; c.gridwidth = 1;
c.gridwidth = GridBagConstraints.REMAINDER; authorPanel.add(version, c); JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString( RESOURCE_BUNDLE_PATH, "about", "build_date")); if (font != null) { font = font.deriveFont(Font.BOLD); buildDateLabel.setFont(font); } c.gridx = 0; c.gridy = 2; c.gridwidth = 1;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
Method name: void init() Method name: void init()
Number of AST nodes: 9 Number of AST nodes: 9
1
c.gridwidth = GridBagConstraints.REMAINDER;
1
c.gridwidth = GridBagConstraints.REMAINDER;
2
		authorPanel.add(imageLabel, c);
2
		authorPanel.add(version, c);
3
		JLabel versionLabel = new JLabel(GlobalResourceLoader.getString(
3
		JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString(
4
				RESOURCE_BUNDLE_PATH, "about", "version"));
4
				RESOURCE_BUNDLE_PATH, "about", "build_date"));
5
		if (font != null) {
5
		if (font != null) {
6
			font = font.deriveFont(Font.BOLD);
6
			font = font.deriveFont(Font.BOLD);
7
			versionLabel.setFont(font);
7
			buildDateLabel.setFont(font);
8
		}
8
		}
9
		c.gridx = 0;
9
		c.gridx = 0;
10
		c.gridy = 1;
10
		c.gridy = 2;
11
		c.gridwidth = 1;
11
		c.gridwidth = 1;
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 the same method
Number of node comparisons35
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    c.gridwidth = GridBagConstraints.REMAINDER;
    30
    c.gridwidth = GridBagConstraints.REMAINDER;
    11
    authorPanel.add(imageLabel, c);
    11
    authorPanel.add(imageLabel, c);
    31
    authorPanel.add(version, c);
    Differences
    Expression1Expression2Difference
    imageLabelversionVARIABLE_NAME_MISMATCH
    31
    authorPanel.add(version, c);
    12
    JLabel versionLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "version"));
    12
    JLabel versionLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "version"));
    32
    JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "build_date"));
    Differences
    Expression1Expression2Difference
    versionLabelbuildDateLabelVARIABLE_NAME_MISMATCH
    "version""build_date"LITERAL_VALUE_MISMATCH
    32
    JLabel buildDateLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "build_date"));
    13
    if (font != null)
    33
    if (font != null)
    14
    font = font.deriveFont(Font.BOLD);
    34
    font = font.deriveFont(Font.BOLD);
    15
    versionLabel.setFont(font);
    15
    versionLabel.setFont(font);
    35
    buildDateLabel.setFont(font);
    Differences
    Expression1Expression2Difference
    versionLabelbuildDateLabelVARIABLE_NAME_MISMATCH
    35
    buildDateLabel.setFont(font);
    16
    c.gridx = 0;
    36
    c.gridx = 0;
    17
    c.gridy = 1;
    17
    c.gridy = 1;
    37
    c.gridy = 2;
    Differences
    Expression1Expression2Difference
    12LITERAL_VALUE_MISMATCH
    37
    c.gridy = 2;
    18
    c.gridwidth = 1;
    38
    c.gridwidth = 1;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables versionLabel, font , while Clone fragment #2 returns variables buildDateLabel, font