File[] rest = tempDir.listFiles(); for( int i=0; i<rest.length; i++) { rest[i].delete(); }
File[] pluginFolders = PluginFinder.searchPlugins(); for (int i = 0; i < pluginFolders.length; i++) { System.out.println("plugin-directory=" + pluginFolders[i]); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/test/java/org/columba/core/io/StreamCacheTest.java File path: /columba-1.4-src/core/src/test/java/org/columba/core/plugin/PluginFinderTest.java
Method name: void tearDown() Method name: void test()
Number of AST nodes: 3 Number of AST nodes: 3
1
File[] rest = tempDir.listFiles();
1
File[] pluginFolders = PluginFinder.searchPlugins();
2
		for( int i=0; i<rest.length; i++) {
2
		for (int i = 0; i < pluginFolders.length; i++) {
3
			rest[i].delete();
3
			System.out.println("plugin-directory=" + pluginFolders[i]);
4
		}
4
		}
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.2
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                              
    1
    File[] pluginFolders = PluginFinder.searchPlugins();
    1
    File[] rest = tempDir.listFiles();
                                                                          
    2
    for (int i = 0; i < rest.length; i++)
    2
    for (int i = 0; i < rest.length; i++)
    2
    for (int i = 0; i < pluginFolders.length; i++)
    Differences
    Expression1Expression2Difference
    restpluginFoldersVARIABLE_NAME_MISMATCH
    2
    for (int i = 0; i < pluginFolders.length; i++)
                                                                                                                                
    3
    System.out.println("plugin-directory=" + pluginFolders[i]);
    Preondition Violations
    Unmatched statement System.out.println("plugin-directory=" + pluginFolders[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3
    System.out.println("plugin-directory=" + pluginFolders[i]);
    3
    rest[i].delete();
    3
    rest[i].delete();
    Preondition Violations
    Unmatched statement rest[i].delete(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                            
    Precondition Violations (2)
    Row Violation
    1Unmatched statement System.out.println("plugin-directory=" + pluginFolders[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement rest[i].delete(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted