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);
try { textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT")); } catch (IOException ioe) { textPane.setText(ioe.getLocalizedMessage()); } ackPanel.add(new JScrollPane(textPane)); tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "ackPane"), ackPanel);
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: 4 Number of AST nodes: 4
1
try {
1
try {
2
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
2
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT"));
3
		} catch (IOException ioe) {
3
		} catch (IOException ioe) {
4
			textPane.setText(ioe.getLocalizedMessage());
4
			textPane.setText(ioe.getLocalizedMessage());
5
		}
5
		}
6
		licensePanel.add(new JScrollPane(textPane));
6
		ackPanel.add(new JScrollPane(textPane));
7
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
7
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
8
				"about", "license"), licensePanel);
8
				"about", "ackPane"), ackPanel);
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.2
Clones locationClones are in the same method
Number of node comparisons8
  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)10.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    97
    try
    106
    try
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    107
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT"));
    Differences
    Expression1Expression2Difference
    "org/columba/core/aboutbox/LICENSE""org/columba/core/aboutbox/ACKNOWLEDGEMENT"LITERAL_VALUE_MISMATCH
    107
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/ACKNOWLEDGEMENT"));
    99
    licensePanel.add(new JScrollPane(textPane));
    99
    licensePanel.add(new JScrollPane(textPane));
    108
    ackPanel.add(new JScrollPane(textPane));
    Differences
    Expression1Expression2Difference
    licensePanelackPanelVARIABLE_NAME_MISMATCH
    108
    ackPanel.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);
    109
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "ackPane"), ackPanel);
    Differences
    Expression1Expression2Difference
    "license""ackPane"LITERAL_VALUE_MISMATCH
    licensePanelackPanelVARIABLE_NAME_MISMATCH
    109
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "ackPane"), ackPanel);
    Precondition Violations (0)
    Row Violation