CloneSet3081


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3250.961class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13712
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
23727
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
3
Source Line
712
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                private void copyInitializerToDestination(IInitializer initializer, CompilationUnitRewrite targetRewriter, CompilationUnit sourceCuNode, CompilationUnit targetCuNode) throws JavaModelException {
                        BodyDeclaration newInitializer = (BodyDeclaration) targetRewriter.getASTRewrite().createStringPlaceholder(getUnindentedSource(initializer), ASTNode.INITIALIZER);
                        copyMemberToDestination(initializer, targetRewriter, sourceCuNode, targetCuNode, newInitializer);
                }


Clone Instance
2
Line Count
3
Source Line
727
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                private void copyMethodToDestination(IMethod method, CompilationUnitRewrite targetRewriter, CompilationUnit sourceCuNode, CompilationUnit targetCuNode) throws JavaModelException {
                        BodyDeclaration newMethod = (BodyDeclaration) targetRewriter.getASTRewrite().createStringPlaceholder(getUnindentedSource(method), ASTNode.METHOD_DECLARATION);
                        copyMemberToDestination(method, targetRewriter, sourceCuNode, targetCuNode, newMethod);
                }


Clone AbstractionParameter Count: 5Parameter Bindings

private void [[#variable594c84c0]]( [[#variable594c8420]]  [[#variable594c83c0]], CompilationUnitRewrite targetRewriter, CompilationUnit sourceCuNode, CompilationUnit targetCuNode) throws JavaModelException {
  BodyDeclaration  [[#variable594c8340]]= (BodyDeclaration) targetRewriter.getASTRewrite().createStringPlaceholder(getUnindentedSource( [[#variable594c83c0]]), ASTNode. [[#variable594c82e0]]);
  copyMemberToDestination( [[#variable594c83c0]], targetRewriter, sourceCuNode, targetCuNode,  [[#variable594c8340]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#594c84c0]]
copyInitializerToDestination 
12[[#594c84c0]]
copyMethodToDestination 
21[[#594c8420]]
IInitializer 
22[[#594c8420]]
IMethod 
31[[#594c83c0]]
initializer 
32[[#594c83c0]]
method 
41[[#594c8340]]
newInitializer 
42[[#594c8340]]
newMethod 
51[[#594c82e0]]
INITIALIZER 
52[[#594c82e0]]
METHOD_DECLARATION