CloneSet836


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17250.990statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1171057
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
2161178
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
Clone Instance
1
Line Count
17
Source Line
1057
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java

                        if (methodDecl.isConstructor()) {
                                if (diff == 1) {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_removeparam_constr_description, arg);
                                }
                                else   {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_removeparams_constr_description, arg);
                                }
                        }
                        else   {
                                if (diff == 1) {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_removeparam_description, arg);
                                }
                                else   {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_removeparams_description, arg);
                                }
                        }
                        Image image = JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_REMOVE);
                        ChangeMethodSignatureProposal proposal = new ChangeMethodSignatureProposal(label, targetCU, invocationNode, methodDecl, changeDesc, null, 5, image);
                        proposals.add(proposal);


Clone Instance
2
Line Count
16
Source Line
1178
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java

                        if (methodDecl.isConstructor()) {
                                if (diff == 1) {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_addparam_constr_description, arg);
                                }
                                else   {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_addparams_constr_description, arg);
                                }
                        }
                        else   {
                                if (diff == 1) {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_addparam_description, arg);
                                }
                                else   {
                                        label = Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_addparams_description, arg);
                                }
                        }
                        Image image = JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_ADD);
                        ChangeMethodSignatureProposal proposal = new ChangeMethodSignatureProposal(label, targetCU, invocationNode, methodDecl, changeDesc, null, 5, image);
                        proposals.add(proposal);


Clone AbstractionParameter Count: 5Parameter Bindings

if (methodDecl.isConstructor()) {
  if (diff == 1) {
    label = Messages.format(CorrectionMessages. [[#variablec209b4c0]], arg);
  }
  else {
    label = Messages.format(CorrectionMessages. [[#variablec209b440]], arg);
  }
}
else {
  if (diff == 1) {
    label = Messages.format(CorrectionMessages. [[#variablec209b400]], arg);
  }
  else {
    label = Messages.format(CorrectionMessages. [[#variablec209b420]], arg);
  }
}
Image image = JavaPluginImages.get(JavaPluginImages. [[#variablec1f88f60]]);
ChangeMethodSignatureProposal proposal = new ChangeMethodSignatureProposal(label, targetCU, invocationNode, methodDecl, changeDesc, null, 5, image);
proposals.add(proposal);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c209b4c0]]
UnresolvedElementsSubProcessor_removeparam_constr_description 
12[[#c209b4c0]]
UnresolvedElementsSubProcessor_addparam_constr_description 
21[[#c209b440]]
UnresolvedElementsSubProcessor_removeparams_constr_description 
22[[#c209b440]]
UnresolvedElementsSubProcessor_addparams_constr_description 
31[[#c209b400]]
UnresolvedElementsSubProcessor_removeparam_description 
32[[#c209b400]]
UnresolvedElementsSubProcessor_addparam_description 
41[[#c209b420]]
UnresolvedElementsSubProcessor_removeparams_description 
42[[#c209b420]]
UnresolvedElementsSubProcessor_addparams_description 
51[[#c1f88f60]]
IMG_CORRECTION_REMOVE 
52[[#c1f88f60]]
IMG_CORRECTION_ADD