Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 1 | 0.998 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 183 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java |
2 | 11 | 209 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java |
| ||||
{ IJavaElement sibling = null; if (existing != null) { sibling = StubUtility.findNextSibling(existing); removeExistingAccessor(existing, rewrite); } else sibling = fInsert; ASTNode insertion = null; if (sibling instanceof IMethod) insertion = ASTNodes.getParent(NodeFinder.perform(rewrite.getParent().getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class ); addNewAccessor(type, field, GetterSetterUtil.getGetterStub(field, name, fSettings.createComments, fVisibility| (field.getFlags()& Flags.AccStatic)), rewrite, insertion); } |
| ||||
{ IJavaElement sibling = null; if (existing != null) { sibling = StubUtility.findNextSibling(existing); removeExistingAccessor(existing, rewrite); } else sibling = fInsert; ASTNode insertion = null; if (sibling instanceof IMethod) insertion = ASTNodes.getParent(NodeFinder.perform(rewrite.getParent().getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class ); addNewAccessor(type, field, GetterSetterUtil.getSetterStub(field, name, fSettings.createComments, fVisibility| (field.getFlags()& Flags.AccStatic)), rewrite, insertion); } |
| |||
{ IJavaElement sibling = null; if (existing != null) { sibling = StubUtility.findNextSibling(existing); removeExistingAccessor(existing, rewrite); } else sibling = fInsert; ASTNode insertion = null; if (sibling instanceof IMethod) insertion = ASTNodes.getParent(NodeFinder.perform(rewrite.getParent().getRoot(), ((IMethod) fInsert).getNameRange()), MethodDeclaration.class ); addNewAccessor(type, field, GetterSetterUtil. [[#variableb837ae40]](field, name, fSettings.createComments, fVisibility|(field.getFlags()&Flags.AccStatic)), rewrite, insertion); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b837ae40]] | getGetterStub |
1 | 2 | [[#b837ae40]] | getSetterStub |