CloneSet2805


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

                                                                        {
                                        FieldDeclaration fieldDecl = (FieldDeclaration) parent;
                                        if (fieldDecl.fragments().size() > 1 && (fieldDecl.getParent() instanceof AbstractTypeDeclaration)) { // split
                                                VariableDeclarationRewrite.rewriteModifiers(fieldDecl, new VariableDeclarationFragment[] {
                                                                                                                                          fragment
                                                                                                                                         },          fIncludedModifiers, fExcludedModifiers, rewrite, selectionDescription);
                                                return rewrite;
                                        }
                                                                        }


Clone Instance
2
Line Count
5
Source Line
77
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierChangeCompletionProposal.java

                                                                                           {
                                        VariableDeclarationStatement varDecl = (VariableDeclarationStatement) parent;
                                        if (varDecl.fragments().size() > 1 && (varDecl.getParent() instanceof Block)) { // split
                                                VariableDeclarationRewrite.rewriteModifiers(varDecl, new VariableDeclarationFragment[] {
                                                                                                                                        fragment
                                                                                                                                       },          fIncludedModifiers, fExcludedModifiers, rewrite, selectionDescription);
                                                return rewrite;
                                        }
                                                                                           }


Clone AbstractionParameter Count: 3Parameter Bindings

{
   [[#variable60da5080]]  [[#variable60da4fe0]]= ( [[#variable60da5080]]) parent;
  if ( [[#variable60da4fe0]].fragments().size() > 1 && ( [[#variable60da4fe0]].getParent() instanceof [[#variable60da4f80]])) { // split
    VariableDeclarationRewrite.rewriteModifiers( [[#variable60da4fe0]], new VariableDeclarationFragment[] {
                                                                                                            fragment
                                                                                                          }, fIncludedModifiers, fExcludedModifiers, rewrite, selectionDescription);
    return rewrite;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60da5080]]
FieldDeclaration 
12[[#60da5080]]
VariableDeclarationStatement 
21[[#60da4fe0]]
fieldDecl 
22[[#60da4fe0]]
varDecl 
31[[#60da4f80]]
AbstractTypeDeclaration 
32[[#60da4f80]]
Block