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 | 561 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java |
2 | 6 | 832 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java |
| ||||
public CollectionElementVariable2 getElementVariable(ConstraintVariable2 constraintVariable, ITypeBinding typeVariable) { Assert.isTrue(typeVariable.isTypeVariable()); // includes null check HashMap typeVarToElementVars = (HashMap) constraintVariable.getData(INDEXED_COLLECTION_ELEMENTS); if (typeVarToElementVars == null) return null; return (CollectionElementVariable2) typeVarToElementVars.get(typeVariable.getKey()); } |
| ||||
public CollectionElementVariable2 getElementVariable(ConstraintVariable2 constraintVariable, TypeVariable typeVariable) { Assert.isTrue(typeVariable.isTypeVariable()); // includes null check HashMap typeVarToElementVars = (HashMap) constraintVariable.getData(INDEXED_COLLECTION_ELEMENTS); if (typeVarToElementVars == null) return null; return (CollectionElementVariable2) typeVarToElementVars.get(typeVariable.getBindingKey()); } |
| |||
public CollectionElementVariable2 getElementVariable(ConstraintVariable2 constraintVariable, [[#variable9ef777a0]] typeVariable) { Assert.isTrue(typeVariable.isTypeVariable()); // includes null check HashMap typeVarToElementVars = (HashMap) constraintVariable.getData(INDEXED_COLLECTION_ELEMENTS); if (typeVarToElementVars == null) return null; return (CollectionElementVariable2) typeVarToElementVars.get(typeVariable. [[#variable9ef776a0]]()); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9ef777a0]] | ITypeBinding |
1 | 2 | [[#9ef777a0]] | TypeVariable |
2 | 1 | [[#9ef776a0]] | getKey |
2 | 2 | [[#9ef776a0]] | getBindingKey |