CloneSet1514


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1111438
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
2111476
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
Clone Instance
1
Line Count
11
Source Line
1438
Source File
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);
                }
        }


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

        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);
                }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4a4d8c0]]
ClassInstanceCreation 
12[[#b4a4d8c0]]
SuperConstructorInvocation 
21[[#b4a4d840]]
creation 
22[[#b4a4d840]]
invocation 
31[[#b4a4d7c0]]
JavaModelException 
32[[#b4a4d7c0]]
CoreException