CloneSet779


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13250.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131189
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
2131204
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
Clone Instance
1
Line Count
13
Source Line
1189
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java

        private ASTNode getNewQualifiedNameNode(ITypeBinding[] parameters, Name name) {
                final AST ast = name.getAST();
                boolean raw = false;
                final ITypeBinding binding = name.resolveTypeBinding();
                if (binding != null && binding.isRawType())
                        raw = true;
                if (parameters != null && parameters.length > 0 && !raw) {
                        final ParameterizedType type = ast.newParameterizedType(ast.newSimpleType(ast.newName(fQualifiedTypeName)));
                        for (int index = 0; index < parameters.length; index++)
                                type.typeArguments().add(ast.newSimpleType(ast.newSimpleName(parameters[index].getName())));
                        return type;
                }
                return ast.newName(fQualifiedTypeName);
        }


Clone Instance
2
Line Count
13
Source Line
1204
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java

        private ASTNode getNewUnqualifiedTypeNode(ITypeBinding[] parameters, Name name) {
                final AST ast = name.getAST();
                boolean raw = false;
                final ITypeBinding binding = name.resolveTypeBinding();
                if (binding != null && binding.isRawType())
                        raw = true;
                if (parameters != null && parameters.length > 0 && !raw) {
                        final ParameterizedType type = ast.newParameterizedType(ast.newSimpleType(ast.newSimpleName(fType.getElementName())));
                        for (int index = 0; index < parameters.length; index++)
                                type.typeArguments().add(ast.newSimpleType(ast.newSimpleName(parameters[index].getName())));
                        return type;
                }
                return ast.newSimpleType(ast.newSimpleName(fType.getElementName()));
        }


Clone AbstractionParameter Count: 5Parameter Bindings

private ASTNode  [[#variable92c01820]](ITypeBinding[] parameters, Name name) {
  final AST ast = name.getAST();
  boolean raw = false;
  final ITypeBinding binding = name.resolveTypeBinding();
  if (binding != null && binding.isRawType())
    raw = true;
  if (parameters != null && parameters.length > 0 && !raw) {
    final ParameterizedType type = ast.newParameterizedType(ast.newSimpleType(ast. [[#variable92c01780]]( [[#variable92c01700]])));
    for (int index = 0; index < parameters.length; index++)
      type.typeArguments().add(ast.newSimpleType(ast.newSimpleName(parameters[index].getName())));
    return type;
  }
  return ast. [[#variable92c016a0]]( [[#variable92c01600]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#92c01820]]
getNewQualifiedNameNode 
12[[#92c01820]]
getNewUnqualifiedTypeNode 
21[[#92c01780]]
newName 
22[[#92c01780]]
newSimpleName 
31[[#92c01700]]
fQualifiedTypeName 
32[[#92c01700]]
fType.getElementName() 
41[[#92c016a0]]
newName 
42[[#92c016a0]]
newSimpleType 
51[[#92c01600]]
fQualifiedTypeName 
52[[#92c01600]]
ast.newSimpleName(fType.getElementName())