CloneSet1867


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7210.983statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17570
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java
27593
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java
Clone Instance
1
Line Count
7
Source Line
570
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java

                        if (binding instanceof ITypeBinding) {
                                final ITypeBinding type = (ITypeBinding) binding;
                                if (type.isClass() && type.getDeclaringClass() != null) {
                                        final String name = fTargetRewrite.getImportRewrite().addImport(type);
                                        if (name != null && name.length() > 0) {
                                                fRewrite.replace(node, ASTNodeFactory.newName(node.getAST(), name), null);
                                                return false;
                                        }
                                }
                        }


Clone Instance
2
Line Count
7
Source Line
593
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java

                        if (binding instanceof ITypeBinding) {
                                final ITypeBinding type = (ITypeBinding) binding;
                                if (type.isClass() && type.getDeclaringClass() != null) {
                                        final String name = fTargetRewrite.getImportRewrite().addImport(type);
                                        if (name != null && name.length() > 0) {
                                                fRewrite.replace(node, ASTNodeFactory.newName(ast, name), null);
                                                return false;
                                        }
                                }
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

if (binding instanceof ITypeBinding) {
  final ITypeBinding type = (ITypeBinding) binding;
  if (type.isClass() && type.getDeclaringClass() != null) {
    final String name = fTargetRewrite.getImportRewrite().addImport(type);
    if (name != null && name.length() > 0) {
      fRewrite.replace(node, ASTNodeFactory.newName( [[#variablea06f4da0]], name), null);
      return false;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a06f4da0]]
node.getAST() 
12[[#a06f4da0]]
ast