CloneSet945


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.993statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110112
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/contentassist/FieldNameProcessor.java
210118
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/contentassist/VariableNamesProcessor.java
Clone Instance
1
Line Count
10
Source Line
112
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/contentassist/FieldNameProcessor.java

                Image image = fImageRegistry.get(imageDescriptor);
                for (int i = 0; i < fFieldNameProposals.length; i++) {
                        String tempName = fFieldNameProposals[i];
                        if (tempName.length() == 0 || ! tempName.startsWith(prefix))
                                continue ;
                        JavaCompletionProposal proposal = new JavaCompletionProposal(tempName, 0, input.length(), image, tempName, 0);
                        proposals.add(proposal);
                }
                fErrorMessage = proposals.size() > 0 ? null:  JavaUIMessages.JavaEditor_codeassist_noCompletions;
                return (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);


Clone Instance
2
Line Count
10
Source Line
118
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/contentassist/VariableNamesProcessor.java

                Image image = fImageRegistry.get(fProposalImageDescriptor);
                for (int i = 0; i < fTempNameProposals.length; i++) {
                        String tempName = fTempNameProposals[i];
                        if (tempName.length() == 0 || ! tempName.startsWith(prefix))
                                continue ;
                        JavaCompletionProposal proposal = new JavaCompletionProposal(tempName, 0, input.length(), image, tempName, 0);
                        proposals.add(proposal);
                }
                fErrorMessage = proposals.size() > 0 ? null:  JavaUIMessages.JavaEditor_codeassist_noCompletions;
                return (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);


Clone AbstractionParameter Count: 2Parameter Bindings

Image image = fImageRegistry.get( [[#variable5a685420]]);
for (int i = 0; i <  [[#variable5a685400]].length; i++) {
  String tempName = [[#variable5a685400]][i];
  if (tempName.length() == 0 || !tempName.startsWith(prefix))
    continue ;
  JavaCompletionProposal proposal = new JavaCompletionProposal(tempName, 0, input.length(), image, tempName, 0);
  proposals.add(proposal);
}
fErrorMessage = proposals.size() > 0 ? null: JavaUIMessages.JavaEditor_codeassist_noCompletions;
return (ICompletionProposal[]) proposals.toArray(new ICompletionProposal[proposals.size()]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a685420]]
fProposalImageDescriptor 
12[[#5a685420]]
imageDescriptor 
21[[#5a685400]]
fTempNameProposals 
22[[#5a685400]]
fFieldNameProposals