Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 2 | 0.986 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 219 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java |
2 | 9 | 207 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddDelegateMethodsOperation.java |
3 | 10 | 290 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GenerateHashCodeEqualsOperation.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 ); |
| ||||
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 ); |
| ||||
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 ); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a054ca20]] | unit |
1 | 2 | [[#a054ca20]] | cu |
1 | 3 | [[#a054ca20]] | unit |
2 | 1 | [[#9c9441a0]] | rewrite |
2 | 2 | [[#9c9441a0]] | fRewrite |
2 | 3 | [[#9c9441a0]] | rewrite |