Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 351 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsModel.java |
2 | 6 | 368 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/constraints/SuperTypeConstraintsModel.java |
| ||||
/** * Creates an immutable type variable. * * @param type the type binding * @return the created plain type variable */ public final ConstraintVariable2 createImmutableTypeVariable(ITypeBinding type) { if (type.isArray()) type = type.getElementType(); if (isConstrainedType(type)) return (ConstraintVariable2) fConstraintVariables.addExisting(new ImmutableTypeVariable2(createTType(type))); return null; } |
| ||||
/** * Creates an independent type variable. * <p> * An independant type variable stands for an arbitrary type. * </p> * * @param type the type binding * @return the created independant type variable */ public final ConstraintVariable2 createIndependentTypeVariable(ITypeBinding type) { if (type.isArray()) type = type.getElementType(); if (isConstrainedType(type)) return (ConstraintVariable2) fConstraintVariables.addExisting(new IndependentTypeVariable2(createTType(type))); return null; } |
| |||
/** * Creates an immutable type variable. * * @param type the type binding * @return the created plain type variable */ /** * Creates an independent type variable. * <p> * An independant type variable stands for an arbitrary type. * </p> * * @param type the type binding * @return the created independant type variable */ public final ConstraintVariable2 [[#variable92f96240]](ITypeBinding type) { if (type.isArray()) type = type.getElementType(); if (isConstrainedType(type)) return (ConstraintVariable2) fConstraintVariables.addExisting(new [[#variable92f961c0]](createTType(type))); return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#92f96240]] | createImmutableTypeVariable |
1 | 2 | [[#92f96240]] | createIndependentTypeVariable |
2 | 1 | [[#92f961c0]] | ImmutableTypeVariable2 |
2 | 2 | [[#92f961c0]] | IndependentTypeVariable2 |