Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 5 | 0.961 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 712 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 3 | 727 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#594c84c0]] | copyInitializerToDestination |
1 | 2 | [[#594c84c0]] | copyMethodToDestination |
2 | 1 | [[#594c8420]] | IInitializer |
2 | 2 | [[#594c8420]] | IMethod |
3 | 1 | [[#594c83c0]] | initializer |
3 | 2 | [[#594c83c0]] | method |
4 | 1 | [[#594c8340]] | newInitializer |
4 | 2 | [[#594c8340]] | newMethod |
5 | 1 | [[#594c82e0]] | INITIALIZER |
5 | 2 | [[#594c82e0]] | METHOD_DECLARATION |