textPane = new InfoViewTextPane(); try { textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE")); } catch (IOException ioe) { textPane.setText(ioe.getLocalizedMessage()); } licensePanel.add(new JScrollPane(textPane)); tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel); JPanel ackPanel = new JPanel(new BorderLayout()); ackPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
try { textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS")); } catch (IOException ioe) { textPane.setText(ioe.getLocalizedMessage()); } contributorPanel.add(new JScrollPane(textPane)); tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "contributorPane"), contributorPanel); JPanel licensePanel = new JPanel(new BorderLayout()); licensePanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
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: 7 Number of AST nodes: 6
1
textPane = new InfoViewTextPane();
2
		try {
1
try {
3
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
2
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
4
		} catch (IOException ioe) {
3
		} catch (IOException ioe) {
5
			textPane.setText(ioe.getLocalizedMessage());
4
			textPane.setText(ioe.getLocalizedMessage());
6
		}
5
		}
7
		licensePanel.add(new JScrollPane(textPane));
6
		contributorPanel.add(new JScrollPane(textPane));
8
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
7
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
9
				"about", "license"), licensePanel);
8
				"about", "contributorPane"), contributorPanel);
10
		JPanel ackPanel = new JPanel(new BorderLayout());
9
		JPanel licensePanel = new JPanel(new BorderLayout());
11
		ackPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
10
		licensePanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
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.3
Clones locationClones are in the same method
Number of node comparisons14
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)11.1
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    96
    textPane = new InfoViewTextPane();
                                                                            
    97
    try
    90
    try
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    91
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
    Differences
    Expression1Expression2Difference
    "org/columba/core/aboutbox/LICENSE""org/columba/core/aboutbox/CONTRIBUTORS"LITERAL_VALUE_MISMATCH
    91
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
    99
    licensePanel.add(new JScrollPane(textPane));
    99
    licensePanel.add(new JScrollPane(textPane));
    92
    contributorPanel.add(new JScrollPane(textPane));
    Differences
    Expression1Expression2Difference
    licensePanelcontributorPanelVARIABLE_NAME_MISMATCH
    92
    contributorPanel.add(new JScrollPane(textPane));
    100
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel);
    100
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel);
    93
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "contributorPane"), contributorPanel);
    Differences
    Expression1Expression2Difference
    "license""contributorPane"LITERAL_VALUE_MISMATCH
    licensePanelcontributorPanelVARIABLE_NAME_MISMATCH
    93
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "contributorPane"), contributorPanel);
    101
    JPanel ackPanel = new JPanel(new BorderLayout());
    101
    JPanel ackPanel = new JPanel(new BorderLayout());
    94
    JPanel licensePanel = new JPanel(new BorderLayout());
    Differences
    Expression1Expression2Difference
    ackPanellicensePanelVARIABLE_NAME_MISMATCH
    94
    JPanel licensePanel = new JPanel(new BorderLayout());
    102
    ackPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
    102
    ackPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
    95
    licensePanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
    Differences
    Expression1Expression2Difference
    ackPanellicensePanelVARIABLE_NAME_MISMATCH
    95
    licensePanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
    Precondition Violations (0)
    Row Violation