CloneSet4787


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.973class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111930
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
2111050
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
11
Source Line
930
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                public boolean canChildrenBeDestinations(IJavaElement javaElement) {
                        switch (javaElement.getElementType()) {
                                case IJavaElement.JAVA_MODEL:
                                case IJavaElement.JAVA_PROJECT:
                                        return true;
                                default:
                                        return false;
                              }
                }

                public boolean canChildrenBeDestinations(IResource resource) {
                        return false;
                }


Clone Instance
2
Line Count
11
Source Line
1050
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                public boolean canElementBeDestination(IJavaElement javaElement) {
                        switch (javaElement.getElementType()) {
                                case IJavaElement.JAVA_PROJECT:
                                case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                                        return true;
                                default:
                                        return false;
                              }
                }

                public boolean canElementBeDestination(IResource resource) {
                        return false;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

public boolean  [[#variable9e75f080]](IJavaElement javaElement) {
  switch (javaElement.getElementType()) {
    case IJavaElement. [[#variable9e75e600]]:
    case IJavaElement. [[#variable9e75f0e0]]:
      return true;
    default:
      return false;
  }
}

public boolean  [[#variable9e75f080]](IResource resource) {
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9e75f080]]
canElementBeDestination 
12[[#9e75f080]]
canChildrenBeDestinations 
21[[#9e75e600]]
JAVA_PROJECT 
22[[#9e75e600]]
JAVA_MODEL 
31[[#9e75f0e0]]
PACKAGE_FRAGMENT_ROOT 
32[[#9e75f0e0]]
JAVA_PROJECT