CloneSet4099


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.952class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112440
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
2121037
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
12
Source Line
440
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:
                                case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                                        return true;
                                default:
                                        return false;
                              }
                }

                public boolean canChildrenBeDestinations(IResource resource) {
                        return resource instanceof IContainer;
                }


Clone Instance
2
Line Count
12
Source Line
1037
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:
                                case IJavaElement.PACKAGE_FRAGMENT_ROOT:  //can be nested (with exclusion filters)
                                        return true;
                                default:
                                        return false;
                              }
                }

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


Clone AbstractionParameter Count: 1Parameter Bindings

public boolean canChildrenBeDestinations(IJavaElement javaElement) {
  switch (javaElement.getElementType()) {
    case IJavaElement.JAVA_MODEL:
    case IJavaElement.JAVA_PROJECT:
    case IJavaElement.PACKAGE_FRAGMENT_ROOT: //can be nested (with exclusion filters)
      return true;
    default:
      return false;
  }
}

public boolean canChildrenBeDestinations(IResource resource) {
  return [[#variable94586ee0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#94586ee0]]
false 
12[[#94586ee0]]
resource instanceof IContainer