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);
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);
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: 5
1
textPane = new InfoViewTextPane();
1
try {
2
		try {
2
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
3
			textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
3
		} catch (IOException ioe) {
4
		} catch (IOException ioe) {
4
			textPane.setText(ioe.getLocalizedMessage());
5
			textPane.setText(ioe.getLocalizedMessage());
5
		}
6
		}
6
		contributorPanel.add(new JScrollPane(textPane));
7
		licensePanel.add(new JScrollPane(textPane));
7
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
8
		tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH,
8
				"about", "contributorPane"), contributorPanel);
9
				"about", "license"), licensePanel);
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 comparisons10
  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 fragment1
    Time elapsed for statement mapping (ms)4.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                            
    96
    textPane = new InfoViewTextPane();
    90
    try
    97
    try
    91
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
    91
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/CONTRIBUTORS"));
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    Differences
    Expression1Expression2Difference
    "org/columba/core/aboutbox/CONTRIBUTORS""org/columba/core/aboutbox/LICENSE"LITERAL_VALUE_MISMATCH
    98
    textPane.setPage(DiskIO.getResourceURL("org/columba/core/aboutbox/LICENSE"));
    92
    contributorPanel.add(new JScrollPane(textPane));
    92
    contributorPanel.add(new JScrollPane(textPane));
    99
    licensePanel.add(new JScrollPane(textPane));
    Differences
    Expression1Expression2Difference
    contributorPanellicensePanelVARIABLE_NAME_MISMATCH
    99
    licensePanel.add(new JScrollPane(textPane));
    93
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "contributorPane"), contributorPanel);
    93
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "contributorPane"), contributorPanel);
    100
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel);
    Differences
    Expression1Expression2Difference
    "contributorPane""license"LITERAL_VALUE_MISMATCH
    contributorPanellicensePanelVARIABLE_NAME_MISMATCH
    100
    tabbedPane.addTab(GlobalResourceLoader.getString(RESOURCE_BUNDLE_PATH, "about", "license"), licensePanel);
    Precondition Violations (0)
    Row Violation