CloneSet2758


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.978class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
161219
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
261227
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
Clone Instance
1
Line Count
6
Source Line
1219
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java

        private boolean insertExpressionAsParameter(ClassInstanceCreation cic, ASTRewrite rewrite, ICompilationUnit cu, TextEditGroup group) throws JavaModelException {
                final Expression expression = createEnclosingInstanceCreationString(cic, cu);
                if (expression == null)
                        return false;
                rewrite.getListRewrite(cic, ClassInstanceCreation.ARGUMENTS_PROPERTY).insertFirst(expression, group);
                return true;
        }


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

        private boolean insertExpressionAsParameter(SuperConstructorInvocation sci, ASTRewrite rewrite, ICompilationUnit cu, TextEditGroup group) throws JavaModelException {
                final Expression expression = createEnclosingInstanceCreationString(sci, cu);
                if (expression == null)
                        return false;
                rewrite.getListRewrite(sci, SuperConstructorInvocation.ARGUMENTS_PROPERTY).insertFirst(expression, group);
                return true;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private boolean insertExpressionAsParameter( [[#variablebaceff80]]  [[#variablebacefea0]], ASTRewrite rewrite, ICompilationUnit cu, TextEditGroup group) throws JavaModelException {
  final Expression expression = createEnclosingInstanceCreationString( [[#variablebacefea0]], cu);
  if (expression == null)
    return false;
  rewrite.getListRewrite( [[#variablebacefea0]],  [[#variablebaceff80]].ARGUMENTS_PROPERTY).insertFirst(expression, group);
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#baceff80]]
ClassInstanceCreation 
12[[#baceff80]]
SuperConstructorInvocation 
21[[#bacefea0]]
cic 
22[[#bacefea0]]
sci