CloneSet978


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9320.986statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19219
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java
29207
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddDelegateMethodsOperation.java
310290
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java
Clone Instance
1
Line Count
9
Source Line
219
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java

                                        if ( !JavaModelUtil.isPrimary(unit))
                                                document = new Document(unit.getBuffer().getContents());
                                        else {
                                                buffer = RefactoringFileBuffers.acquire(unit);
                                                document = buffer.getDocument();
                                        }
                                        ASTNode insertion = null;
                                        if (fInsert instanceof IMethod)
                                                insertion = ASTNodes.getParent(NodeFinder.perform(rewrite.getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class );


Clone Instance
2
Line Count
9
Source Line
207
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddDelegateMethodsOperation.java

                                                if ( !JavaModelUtil.isPrimary(unit))
                                                        document = new Document(unit.getBuffer().getContents());
                                                else {
                                                        buffer = RefactoringFileBuffers.acquire(unit);
                                                        document = buffer.getDocument();
                                                }
                                                ASTNode insertion = null;
                                                if (fInsert instanceof IMethod)
                                                        insertion = ASTNodes.getParent(NodeFinder.perform(rewrite.getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class );


Clone Instance
3
Line Count
10
Source Line
290
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.java

                                        if ( !JavaModelUtil.isPrimary(cu))
                                                document = new Document(cu.getBuffer().getContents());
                                        else {
                                                buffer = RefactoringFileBuffers.acquire(cu);
                                                document = buffer.getDocument();
                                        }
                                        ASTNode insertion = null;
                                        if (fInsert instanceof IMethod)
                                                insertion = ASTNodes.getParent(NodeFinder.perform(fRewrite.getRoot(), ((IMethod) fInsert).getNameRange()), 
                                                                 MethodDeclaration.class );


Clone AbstractionParameter Count: 2Parameter Bindings

if ( !JavaModelUtil.isPrimary( [[#variablea054ca20]]))
  document = new Document( [[#variablea054ca20]].getBuffer().getContents());
else {
  buffer = RefactoringFileBuffers.acquire( [[#variablea054ca20]]);
  document = buffer.getDocument();
}
ASTNode insertion = null;
if (fInsert instanceof IMethod)
  insertion = ASTNodes.getParent(NodeFinder.perform( [[#variable9c9441a0]].getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a054ca20]]
unit 
12[[#a054ca20]]
cu 
13[[#a054ca20]]
unit 
21[[#9c9441a0]]
rewrite 
22[[#9c9441a0]]
fRewrite 
23[[#9c9441a0]]
rewrite