CloneSet2274


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.981class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18252
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
28262
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
Clone Instance
1
Line Count
8
Source Line
252
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

        public static IResource[] getResources(List elements) {
                List resources = new ArrayList(elements.size());
                for (Iterator iter = elements.iterator(); iter.hasNext();) {
                        Object element = iter.next();
                        if (element instanceof IResource)
                                resources.add(element);
                }
                return (IResource[]) resources.toArray(new IResource[resources.size()]);
        }


Clone Instance
2
Line Count
8
Source Line
262
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

        public static IJavaElement[] getJavaElements(List elements) {
                List resources = new ArrayList(elements.size());
                for (Iterator iter = elements.iterator(); iter.hasNext();) {
                        Object element = iter.next();
                        if (element instanceof IJavaElement)
                                resources.add(element);
                }
                return (IJavaElement[]) resources.toArray(new IJavaElement[resources.size()]);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public static [[#variableb8cd3440]][]  [[#variableb8cd3060]](List elements) {
  List resources = new ArrayList(elements.size());
  for (Iterator iter = elements.iterator(); iter.hasNext();) {
    Object element = iter.next();
    if (element instanceof [[#variableb8cd3440]])
      resources.add(element);
  }
  return ( [[#variableb8cd3440]][]) resources.toArray(new [[#variableb8cd3440]][resources.size()]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8cd3440]]
IResource 
12[[#b8cd3440]]
IJavaElement 
21[[#b8cd3060]]
getResources 
22[[#b8cd3060]]
getJavaElements