CloneSet1671


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.997statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110617
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java
210639
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java
Clone Instance
1
Line Count
10
Source Line
617
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java

                                                if (outputFile.exists()) {
                                                        if (JavaBuilder.DEBUG)
                                                                System.out.println("Deleting existing file " + resourcePath); //$NON-NLS-1$
                                                        outputFile.delete(IResource.FORCE, null);
                                                }
                                                if (JavaBuilder.DEBUG)
                                                        System.out.println("Copying added file " + resourcePath); //$NON-NLS-1$
                                                createFolder(resourcePath.removeLastSegments(1), md.binaryFolder); // ensure package exists in the output folder
                                                resource.copy(outputFile.getFullPath(), IResource.FORCE|  IResource.DERIVED, null);
                                                Util.setReadOnly(outputFile, false); // just in case the original was read only


Clone Instance
2
Line Count
10
Source Line
639
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/IncrementalImageBuilder.java

                                                if (outputFile.exists()) {
                                                        if (JavaBuilder.DEBUG)
                                                                System.out.println("Deleting existing file " + resourcePath); //$NON-NLS-1$
                                                        outputFile.delete(IResource.FORCE, null);
                                                }
                                                if (JavaBuilder.DEBUG)
                                                        System.out.println("Copying changed file " + resourcePath); //$NON-NLS-1$
                                                createFolder(resourcePath.removeLastSegments(1), md.binaryFolder); // ensure package exists in the output folder
                                                resource.copy(outputFile.getFullPath(), IResource.FORCE|  IResource.DERIVED, null);
                                                Util.setReadOnly(outputFile, false); // just in case the original was read only


Clone AbstractionParameter Count: 1Parameter Bindings

if (outputFile.exists()) {
  if (JavaBuilder.DEBUG)
    System.out.println("Deleting existing file " + resourcePath); //$NON-NLS-1$
  outputFile.delete(IResource.FORCE, null);
}
if (JavaBuilder.DEBUG)
  System.out.println( [[#variable8fc93920]] + resourcePath); //$NON-NLS-1$
createFolder(resourcePath.removeLastSegments(1), md.binaryFolder); // ensure package exists in the output folder
resource.copy(outputFile.getFullPath(), IResource.FORCE|IResource.DERIVED, null);
Util.setReadOnly(outputFile, false); // just in case the original was read only
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#8fc93920]]
"Copying added file " 
12[[#8fc93920]]
"Copying changed file "