CloneSet5760


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.952executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1771
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java
27466
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
Clone Instance
1
Line Count
7
Source Line
71
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java

                                                      {
                        // for interface and annotation members copy the modifiers from an existing field
                        MethodDeclaration[] methodDecls = ((TypeDeclaration) targetTypeDecl).getMethods();
                        if (methodDecls.length > 0) {
                                return methodDecls[0].getModifiers();
                        }
                        return 0;
                                                      }


Clone Instance
2
Line Count
7
Source Line
466
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java

                                                  {
                        // for interface members copy the modifiers from an existing field
                        FieldDeclaration[] fieldDecls = ((TypeDeclaration) newTypeDecl).getFields();
                        if (fieldDecls.length > 0) {
                                return fieldDecls[0].getModifiers();
                        }
                        return 0;
                                                  }


Clone AbstractionParameter Count: 4Parameter Bindings

{
   [[#variable94619160]][]  [[#variable946190e0]]= ((TypeDeclaration)  [[#variable94619060]]). [[#variable94619000]]();
  if ( [[#variable946190e0]].length > 0) {
    return [[#variable946190e0]][0].getModifiers();
  }
  return 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#94619160]]
// for interface and annotation members copy the modifiers from an existing field
MethodDeclaration 
12[[#94619160]]
// for interface members copy the modifiers from an existing field
FieldDeclaration 
21[[#946190e0]]
methodDecls 
22[[#946190e0]]
fieldDecls 
31[[#94619060]]
targetTypeDecl 
32[[#94619060]]
newTypeDecl 
41[[#94619000]]
getMethods 
42[[#94619000]]
getFields