Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 1438 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java |
2 | 11 | 1476 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java |
| ||||
private void updateConstructorReference( final ClassInstanceCreation creation, final CompilationUnitRewrite targetRewrite, final ICompilationUnit unit, TextEditGroup group) throws JavaModelException { Assert.isNotNull(creation); Assert.isNotNull(targetRewrite); Assert.isNotNull(unit); final ASTRewrite rewrite = targetRewrite.getASTRewrite(); if (fCreateInstanceField) insertExpressionAsParameter(creation, rewrite, unit, group); final Expression expression = creation.getExpression(); if (expression != null) { rewrite.remove(expression, null); targetRewrite.getImportRemover().registerRemovedNode(expression); } } |
| ||||
private void updateConstructorReference( final SuperConstructorInvocation invocation, final CompilationUnitRewrite targetRewrite, final ICompilationUnit unit, TextEditGroup group) throws CoreException { Assert.isNotNull(invocation); Assert.isNotNull(targetRewrite); Assert.isNotNull(unit); final ASTRewrite rewrite = targetRewrite.getASTRewrite(); if (fCreateInstanceField) insertExpressionAsParameter(invocation, rewrite, unit, group); final Expression expression = invocation.getExpression(); if (expression != null) { rewrite.remove(expression, null); targetRewrite.getImportRemover().registerRemovedNode(expression); } } |
| |||
private void updateConstructorReference( final [[#variableb4a4d8c0]] [[#variableb4a4d840]], final CompilationUnitRewrite targetRewrite, final ICompilationUnit unit, TextEditGroup group) throws [[#variableb4a4d7c0]]{ Assert.isNotNull( [[#variableb4a4d840]]); Assert.isNotNull(targetRewrite); Assert.isNotNull(unit); final ASTRewrite rewrite = targetRewrite.getASTRewrite(); if (fCreateInstanceField) insertExpressionAsParameter( [[#variableb4a4d840]], rewrite, unit, group); final Expression expression = [[#variableb4a4d840]].getExpression(); if (expression != null) { rewrite.remove(expression, null); targetRewrite.getImportRemover().registerRemovedNode(expression); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4a4d8c0]] | ClassInstanceCreation |
1 | 2 | [[#b4a4d8c0]] | SuperConstructorInvocation |
2 | 1 | [[#b4a4d840]] | creation |
2 | 2 | [[#b4a4d840]] | invocation |
3 | 1 | [[#b4a4d7c0]] | JavaModelException |
3 | 2 | [[#b4a4d7c0]] | CoreException |