CloneSet2319


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7210.988statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17254
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java
27197
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java
Clone Instance
1
Line Count
7
Source Line
254
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java

                String prefix = pack.getElementName() + '.';
                for (int i = 0; i < allPackages.length; i++) {
                        IPackageFragment currentPackage = (IPackageFragment) allPackages[i];
                        if (currentPackage.getElementName().startsWith(prefix))
                                result.add(currentPackage);
                }
                return (IPackageFragment[]) result.toArray(new IPackageFragment[result.size()]);


Clone Instance
2
Line Count
7
Source Line
197
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java

                String prefix = pack.getElementName() + '.';
                for (int i = 0; i < allPackages.length; i++) {
                        IPackageFragment currentPackage = (IPackageFragment) allPackages[i];
                        if (currentPackage.getElementName().startsWith(prefix))
                                subpackages.add(currentPackage);
                }
                return (IPackageFragment[]) subpackages.toArray(new IPackageFragment[subpackages.size()]);


Clone AbstractionParameter Count: 1Parameter Bindings

String prefix = pack.getElementName() + '.';
for (int i = 0; i < allPackages.length; i++) {
  IPackageFragment currentPackage = (IPackageFragment) allPackages[i];
  if (currentPackage.getElementName().startsWith(prefix))
     [[#variable99022e80]].add(currentPackage);
}
return (IPackageFragment[])  [[#variable99022e80]].toArray(new IPackageFragment[ [[#variable99022e80]].size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99022e80]]
result 
12[[#99022e80]]
subpackages