CloneSet2363


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.976class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11080
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java
21092
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java
Clone Instance
1
Line Count
10
Source Line
80
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java

        private boolean javaElementsHaveCommonParent() {
                if (fJavaElements.length == 0)
                        return true;
                IJavaElement firstParent = fJavaElements[0].getParent();
                Assert.isNotNull(firstParent); //this should never happen                       
                for (int i = 1; i < fJavaElements.length; i++) {
                        if ( ! firstParent.equals(fJavaElements[i].getParent()))
                                return false;
                }
                return true;
        }


Clone Instance
2
Line Count
10
Source Line
92
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java

        private boolean resourcesHaveCommonParent() {
                if (fResources.length == 0)
                        return true;
                IResource firstParent = fResources[0].getParent();
                Assert.isNotNull(firstParent);
                for (int i = 1; i < fResources.length; i++) {
                        if ( ! firstParent.equals(fResources[i].getParent()))
                                return false;
                }
                return true;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

private boolean  [[#variable64140e60]]() {
  if ( [[#variable64140de0]].length == 0)
    return true;
   [[#variable64140d80]] firstParent = [[#variable64140de0]][0].getParent();
  Assert.isNotNull(firstParent); //this should never happen                      
  for (int i = 1; i <  [[#variable64140de0]].length; i++) {
    if ( !firstParent.equals( [[#variable64140de0]][i].getParent()))
      return false;
  }
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#64140e60]]
javaElementsHaveCommonParent 
12[[#64140e60]]
resourcesHaveCommonParent 
21[[#64140de0]]
fJavaElements 
22[[#64140de0]]
fResources 
31[[#64140d80]]
IJavaElement 
32[[#64140d80]]
IResource