CloneSet3464


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18619
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/PasteAction.java
28699
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/PasteAction.java
Clone Instance
1
Line Count
8
Source Line
619
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/PasteAction.java

                private Object getTarget(IJavaElement[] javaElements, IResource[] resources) {
                        if (javaElements.length + resources.length == 1) {
                                if (javaElements.length == 1)
                                        return javaElements[0];
                                else
                                        return resources[0];
                        }
                        else    return getCommonParent(javaElements, resources);
                }


Clone Instance
2
Line Count
8
Source Line
699
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/PasteAction.java

                private Object getTarget(IJavaElement[] javaElements, IResource[] resources) {
                        if (javaElements.length + resources.length == 1) {
                                if (javaElements.length == 1)
                                        return javaElements[0];
                                else
                                        return resources[0];
                        }
                        else    return getCommonParent(javaElements, resources);
                }


Clone AbstractionParameter Count: 0Parameter Bindings

private Object getTarget(IJavaElement[] javaElements, IResource[] resources) {
  if (javaElements.length + resources.length == 1) {
    if (javaElements.length == 1)
      return javaElements[0];
    else
      return resources[0];
  }
  else
    return getCommonParent(javaElements, resources);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None