CloneSet2786


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8320.980block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1873
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java
2885
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddToClasspathAction.java
3875
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RemoveFromClasspathAction.java
Clone Instance
1
Line Count
8
Source Line
73
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java

                                                                 {
                if (elements.isEmpty())
                        return false;
                for (Iterator iter = elements.iterator(); iter.hasNext();) {
                        if ( ! isProject(iter.next()))
                                return false;
                }
                return true;
                                                                 }


Clone Instance
2
Line Count
8
Source Line
85
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddToClasspathAction.java

                                                                                                      {
                if (selection.isEmpty())
                        return false;
                for (Iterator iter = selection.iterator(); iter.hasNext();) {
                        if ( ! canBeAddedToBuildPath(iter.next()))
                                return false;
                }
                return true;
                                                                                                      }


Clone Instance
3
Line Count
8
Source Line
75
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RemoveFromClasspathAction.java

                                                                            {
                if (selection.isEmpty())
                        return false;
                for (Iterator iter = selection.iterator(); iter.hasNext();) {
                        if ( ! canRemove(iter.next()))
                                return false;
                }
                return true;
                                                                            }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  if ( [[#variablea19570e0]].isEmpty())
    return false;
  for (Iterator iter = [[#variablea19570e0]].iterator(); iter.hasNext();) {
    if ( ! [[#variablea1957180]](iter.next()))
      return false;
  }
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a19570e0]]
selection 
12[[#a19570e0]]
selection 
13[[#a19570e0]]
elements 
21[[#a1957180]]
canBeAddedToBuildPath 
22[[#a1957180]]
canRemove 
23[[#a1957180]]
isProject