CloneSet3617


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16561
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java
26832
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java
Clone Instance
1
Line Count
6
Source Line
561
Source File
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());
        }


Clone Instance
2
Line Count
6
Source Line
832
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java

        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());
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9ef777a0]]
ITypeBinding 
12[[#9ef777a0]]
TypeVariable 
21[[#9ef776a0]]
getKey 
22[[#9ef776a0]]
getBindingKey