Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.960 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 251 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java |
2 | 8 | 260 | 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())); } |
| ||||
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())); } |
| |||
if ( ! [[#variable9ef938e0]].containsAll( [[#variable9ef93840]])) { TypeSet xsection = [[#variable9ef93840]].intersectedWith( [[#variable9ef938e0]]); [[#variable9ef93780]].setTypeEstimate(xsection); fWorkList.addAll(Arrays.asList( [[#variable9ef93780]].getContributingVariables())); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9ef938e0]] | rhsSubTypes |
1 | 2 | [[#9ef938e0]] | lhsSuperTypes |
2 | 1 | [[#9ef93840]] | leftEstimate |
2 | 2 | [[#9ef93840]] | rightEstimate |
3 | 1 | [[#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 |
3 | 2 | [[#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 |