CloneSet1420


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21250.977statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121164
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SubTypesSet.java
221169
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SuperTypesSet.java
Clone Instance
1
Line Count
21
Source Line
164
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SubTypesSet.java

                if (fUpperBounds.containsAll(s))
                        return true;

                // Make sure all elements of s are contained in this set
                for (Iterator sIter = s.iterator(); sIter.hasNext();) {
                        TType t = (TType) sIter.next();
                        boolean found = false;

                        // Scan the "upper frontier", i.e. the upper bound set, and see whether
                        // 't' is a subtype of any of those.
                        for (Iterator ubIter = fUpperBounds
                                                            /*.upperBound() */
                                                                              .iterator(); ubIter.hasNext();) {
                                TType ub = (TType) ubIter.next();

                                if (TTypes.canAssignTo(t, ub)) {
                                        found = true;
                                        break;
                                }
                        }
                        if ( !found) return false;
                }
                return true;


Clone Instance
2
Line Count
21
Source Line
169
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SuperTypesSet.java

                if (fLowerBounds.containsAll(s))
                        return true;

                // Make sure all elements of s are contained in this set
                for (Iterator sIter = s.iterator(); sIter.hasNext();) {
                        TType t = (TType) sIter.next();
                        boolean found = false;

                        // Scan the "lower frontier", i.e. the lower bound set, and see whether
                        // 't' is a supertype of any of those.
                        for (Iterator lbIter = fLowerBounds
                                                            /*.lowerBound()*/
                                                                             .iterator(); lbIter.hasNext();) {
                                TType lb = (TType) lbIter.next();

                                if (TTypes.canAssignTo(lb, t)) {
                                        found = true;
                                        break;
                                }
                        }
                        if ( !found) return false;
                }
                return true;


Clone AbstractionParameter Count: 5Parameter Bindings

if ( [[#variablec0a4da80]].containsAll(s))
  return true;
// Make sure all elements of s are contained in this set
for (Iterator sIter = s.iterator(); sIter.hasNext();) {
  TType t = (TType) sIter.next();
  boolean found = false;
  // Scan the "upper frontier", i.e. the upper bound set, and see whether
  // 't' is a subtype of any of those.
  // Scan the "lower frontier", i.e. the lower bound set, and see whether
  // 't' is a supertype of any of those.
  for (Iterator  [[#variablec1c4c760]]= [[#variablec0a4da80]]
                                       /*.upperBound() */
                                       /*.lowerBound()*/
                                       .iterator(); [[#variablec1c4c760]].hasNext();) {
    TType  [[#variable55adf020]]= (TType)  [[#variablec1c4c760]].next();
    if (TTypes.canAssignTo( [[#variable97b01500]],  [[#variablec0a4da40]])) {
      found = true;
      break;
    }
  }
  if ( !found)
    return false;
}
return true;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c0a4da80]]
fUpperBounds 
12[[#c0a4da80]]
fLowerBounds 
21[[#c1c4c760]]
ubIter 
22[[#c1c4c760]]
lbIter 
31[[#55adf020]]
ub 
32[[#55adf020]]
lb 
41[[#97b01500]]
t 
42[[#97b01500]]
lb 
51[[#c0a4da40]]
ub 
52[[#c0a4da40]]
t