File folder = pluginFolders[i]; File xmlFile = new File(folder, FILENAME_PLUGIN_XML); if (xmlFile == null || !xmlFile.exists()) { // skip if it doesn't exist continue; }
File folder = pluginFolders[i]; File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML); if (xmlFile == null || !xmlFile.exists()) { // skip if it doesn't exist continue; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java
Method name: void initExternalPlugins() Method name: void initExternalExtensionHandlers()
Number of AST nodes: 4 Number of AST nodes: 4
1
File folder = pluginFolders[i];
1
File folder = pluginFolders[i];
2
			File xmlFile = new File(folder, FILENAME_PLUGIN_XML);
2
			File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML);
3
			if (xmlFile == null || !xmlFile.exists()) {
3
			if (xmlFile == null || !xmlFile.exists()) {
4
				// skip if it doesn't exist
4
				// skip if it doesn't exist
5
				continue;
5
				continue;
6
			}
6
			}
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.4
Clones locationClones are declared in the same class
Number of node comparisons7
  1. {Non-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)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    File folder = pluginFolders[i];
    4
    File folder = pluginFolders[i];
    5
    File xmlFile = new File(folder, FILENAME_PLUGIN_XML);
    5
    File xmlFile = new File(folder, FILENAME_PLUGIN_XML);
    5
    File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML);
    Differences
    Expression1Expression2Difference
    FILENAME_PLUGIN_XMLFILENAME_EXTENSIONHANDLER_XMLVARIABLE_NAME_MISMATCH
    5
    File xmlFile = new File(folder, FILENAME_EXTENSIONHANDLER_XML);
    6
    if (xmlFile == null || !xmlFile.exists())
    6
    if (xmlFile == null || !xmlFile.exists())
    7
    continue;
    7
    continue;
    7
    continue;
    Preondition Violations
    Statement continue; without innermost loop
    Statement continue; without innermost loop
    7
    continue;
    Precondition Violations (3)
    Row Violation
    1Statement continue; without innermost loop
    2Statement continue; without innermost loop
    3Clone fragment #1 returns variables folder, xmlFile , while Clone fragment #2 returns variables xmlFile, folder