CloneSet435


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13301.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11390
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
213160
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
313268
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
Clone Instance
1
Line Count
13
Source Line
90
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java

                List typeParameters = decl.typeParameters();
                for (int i = 0; i < typeParams.length; i++) {
                        ITypeBinding curr = typeParams[i];
                        TypeParameter newTypeParam = ast.newTypeParameter();
                        newTypeParam.setName(ast.newSimpleName(curr.getName()));
                        ITypeBinding[] typeBounds = curr.getTypeBounds();
                        if (typeBounds.length != 1 || !"java.lang.Object".equals(typeBounds[0].getQualifiedName())) { //$NON-NLS-1$
                                List newTypeBounds = newTypeParam.typeBounds();
                                for (int k = 0; k < typeBounds.length; k++) {
                                        newTypeBounds.add(imports.addImport(typeBounds[k], ast));
                                }
                        }
                        typeParameters.add(newTypeParam);
                }


Clone Instance
2
Line Count
13
Source Line
160
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java

                        List typeParameters = decl.typeParameters();
                        for (int i = 0; i < typeParams.length; i++) {
                                ITypeBinding curr = typeParams[i];
                                TypeParameter newTypeParam = ast.newTypeParameter();
                                newTypeParam.setName(ast.newSimpleName(curr.getName()));
                                ITypeBinding[] typeBounds = curr.getTypeBounds();
                                if (typeBounds.length != 1 || !"java.lang.Object".equals(typeBounds[0].getQualifiedName())) { //$NON-NLS-1$
                                        List newTypeBounds = newTypeParam.typeBounds();
                                        for (int k = 0; k < typeBounds.length; k++) {
                                                newTypeBounds.add(imports.addImport(typeBounds[k], ast));
                                        }
                                }
                                typeParameters.add(newTypeParam);
                        }


Clone Instance
3
Line Count
13
Source Line
268
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java

                List typeParameters = decl.typeParameters();
                for (int i = 0; i < typeParams.length; i++) {
                        ITypeBinding curr = typeParams[i];
                        TypeParameter newTypeParam = ast.newTypeParameter();
                        newTypeParam.setName(ast.newSimpleName(curr.getName()));
                        ITypeBinding[] typeBounds = curr.getTypeBounds();
                        if (typeBounds.length != 1 || !"java.lang.Object".equals(typeBounds[0].getQualifiedName())) { //$NON-NLS-1$
                                List newTypeBounds = newTypeParam.typeBounds();
                                for (int k = 0; k < typeBounds.length; k++) {
                                        newTypeBounds.add(imports.addImport(typeBounds[k], ast));
                                }
                        }
                        typeParameters.add(newTypeParam);
                }


Clone AbstractionParameter Count: 0Parameter Bindings

List typeParameters = decl.typeParameters();
for (int i = 0; i < typeParams.length; i++) {
  ITypeBinding curr = typeParams[i];
  TypeParameter newTypeParam = ast.newTypeParameter();
  newTypeParam.setName(ast.newSimpleName(curr.getName()));
  ITypeBinding[] typeBounds = curr.getTypeBounds();
  if (typeBounds.length != 1 || !"java.lang.Object".equals(typeBounds[0].getQualifiedName())) { //$NON-NLS-1$
    List newTypeBounds = newTypeParam.typeBounds();
    for (int k = 0; k < typeBounds.length; k++) {
      newTypeBounds.add(imports.addImport(typeBounds[k], ast));
    }
  }
  typeParameters.add(newTypeParam);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None