CloneSet909


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.998executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111183
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java
211209
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java
Clone Instance
1
Line Count
11
Source Line
183
Source File
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);
                                                                             }


Clone Instance
2
Line Count
11
Source Line
209
Source File
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.getSetterStub(field, name, fSettings.createComments, fVisibility|  (field.getFlags()&  Flags.AccStatic)), rewrite, insertion);
                                                                                                                                                     }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b837ae40]]
getGetterStub 
12[[#b837ae40]]
getSetterStub