CloneSet1525


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.951statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19345
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EnumeratedTypeSet.java
29383
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EnumeratedTypeSet.java
Clone Instance
1
Line Count
9
Source Line
345
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EnumeratedTypeSet.java

                        if (t.isArrayType()) {
                                ArrayType at = (ArrayType) t;
                                int numDims = at.getDimensions();
                                for (Iterator subIter = TTypes.getAllSubTypesIterator(at.getElementType()); subIter.hasNext();) {
                                        result.fMembers.remove(TTypes.createArrayType(((TType) subIter.next()), numDims));
                                }
                        }
                        else   {
                                for (Iterator iterator = TTypes.getAllSubTypesIterator(t); iterator.hasNext();) {
                                        result.fMembers.remove(iterator.next());
                                }
                        }


Clone Instance
2
Line Count
9
Source Line
383
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EnumeratedTypeSet.java

                        if (t instanceof ArrayType) {
                                ArrayType at = (ArrayType) t;
                                int numDims = at.getDimensions();
                                for (Iterator superIter = TTypes.getAllSuperTypesIterator(at.getElementType()); superIter.hasNext();) {
                                        result.fMembers.remove(TTypes.createArrayType(((TType) superIter.next()), numDims));
                                }
                        }
                        else   {
                                for (Iterator iterator = TTypes.getAllSuperTypesIterator(t); iterator.hasNext();) {
                                        result.fMembers.remove(iterator.next());
                                }
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

if ( [[#variable539ae560]]) {
  ArrayType at = (ArrayType) t;
  int numDims = at.getDimensions();
  for (Iterator  [[#variable539ae4e0]]= TTypes. [[#variable539ae3e0]](at.getElementType()); [[#variable539ae4e0]].hasNext();) {
    result.fMembers.remove(TTypes.createArrayType(((TType)  [[#variable539ae4e0]].next()), numDims));
  }
}
else {
  for (Iterator iterator = TTypes. [[#variable539ae3e0]](t); iterator.hasNext();) {
    result.fMembers.remove(iterator.next());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#539ae560]]
t instanceof ArrayType 
12[[#539ae560]]
t.isArrayType() 
21[[#539ae4e0]]
superIter 
22[[#539ae4e0]]
subIter 
31[[#539ae3e0]]
getAllSuperTypesIterator 
32[[#539ae3e0]]
getAllSubTypesIterator