CloneSet4696


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.960statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18251
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java
28260
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java
Clone Instance
1
Line Count
8
Source Line
251
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java

                if ( ! rhsSubTypes.containsAll(leftEstimate)) {
                        TypeSet xsection = leftEstimate.intersectedWith(rhsSubTypes);

//                      if (xsection.isEmpty()) // too bad, but this can happen
//                              throw new IllegalStateException("Type estimate set is now empty for LHS in " + left + " <= " + right + "; estimates were " + leftEstimate + " <= " + rightEstimate); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$

                        leftSet.setTypeEstimate(xsection);
                        fWorkList.addAll(Arrays.asList(leftSet.getContributingVariables()));
                }


Clone Instance
2
Line Count
8
Source Line
260
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java

                if ( ! lhsSuperTypes.containsAll(rightEstimate)) {
                        TypeSet xsection = rightEstimate.intersectedWith(lhsSuperTypes);

//                      if (xsection.isEmpty())
//                              throw new IllegalStateException("Type estimate set is now empty for RHS in " + left + " <= " + right + "; estimates were " + leftEstimate + " <= " + rightEstimate); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$

                        rightSet.setTypeEstimate(xsection);
                        fWorkList.addAll(Arrays.asList(rightSet.getContributingVariables()));
                }


Clone AbstractionParameter Count: 3Parameter Bindings

if ( ! [[#variable9ef938e0]].containsAll( [[#variable9ef93840]])) {
  TypeSet xsection = [[#variable9ef93840]].intersectedWith( [[#variable9ef938e0]]);
   [[#variable9ef93780]].setTypeEstimate(xsection);
  fWorkList.addAll(Arrays.asList( [[#variable9ef93780]].getContributingVariables()));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9ef938e0]]
rhsSubTypes 
12[[#9ef938e0]]
lhsSuperTypes 
21[[#9ef93840]]
leftEstimate 
22[[#9ef93840]]
rightEstimate 
31[[#9ef93780]]
//                      if (xsection.isEmpty()) // too bad, but this can happen
//                              throw new IllegalStateException("Type estimate set is now empty for LHS in " + left + " <= " + right + "; estimates were " + leftEstimate + " <= " + rightEstimate); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
leftSet 
32[[#9ef93780]]
//                      if (xsection.isEmpty())
//                              throw new IllegalStateException("Type estimate set is now empty for RHS in " + left + " <= " + right + "; estimates were " + leftEstimate + " <= " + rightEstimate); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
rightSet