CloneSet4064


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.988statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16674
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java
26696
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java
Clone Instance
1
Line Count
6
Source Line
674
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java

                        // (2) find refs in fOccurrences and fPackage to namesake packages
                        // (from fOccurrences (without namesakes): may have shared star import)
                        // (from fPackage: may have unimported references to types of namesake packages)
                        IType[] typesToSearch = getTypesInPackages(namesakePackages);
                        if (typesToSearch.length == 0) {
                                pm.done();
                                return new ArrayList(0);
                        }
                        SearchPattern pattern = RefactoringSearchEngine.createOrPattern(typesToSearch, IJavaSearchConstants.REFERENCES);


Clone Instance
2
Line Count
6
Source Line
696
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java

                        IType[] typesToSearch = getTypesInPackage(fPackage);
                        if (typesToSearch.length == 0) {
                                pm.done();
                                return new ArrayList(0);
                        }
                        SearchPattern pattern = RefactoringSearchEngine.createOrPattern(typesToSearch, IJavaSearchConstants.REFERENCES);


Clone AbstractionParameter Count: 2Parameter Bindings

// (2) find refs in fOccurrences and fPackage to namesake packages
// (from fOccurrences (without namesakes): may have shared star import)
// (from fPackage: may have unimported references to types of namesake packages)
IType[] typesToSearch = [[#variable9d47e360]]( [[#variable9c05f960]]);
if (typesToSearch.length == 0) {
  pm.done();
  return new ArrayList(0);
}
SearchPattern pattern = RefactoringSearchEngine.createOrPattern(typesToSearch, IJavaSearchConstants.REFERENCES);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d47e360]]
getTypesInPackages 
12[[#9d47e360]]
getTypesInPackage 
21[[#9c05f960]]
namesakePackages 
22[[#9c05f960]]
fPackage