CloneSet5141


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.964statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
151994
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
252742
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
5
Source Line
1994
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        relevance += computeRelevanceForCaseMatching(token, classField);
                        relevance += computeRelevanceForExpectingType(scope.getJavaLangClass());
                        relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); //no access restriction for class field 

                        this.noProposal = false;


Clone Instance
2
Line Count
5
Source Line
2742
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                                relevance += computeRelevanceForCaseMatching(token, lengthField);
                                relevance += computeRelevanceForExpectingType(TypeBinding.INT);
                                relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); // no access restriction for length field

                                this.noProposal = false;


Clone AbstractionParameter Count: 3Parameter Bindings

relevance += computeRelevanceForCaseMatching(token,  [[#variable9909f4a0]]);
relevance += computeRelevanceForExpectingType( [[#variable990cf140]] [[#variable990ce100]]);
relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); //no access restriction for class field  // no access restriction for length field
this.noProposal = false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9909f4a0]]
classField 
12[[#9909f4a0]]
lengthField 
21[[#990cf140]]
scope 
22[[#990cf140]]
TypeBinding 
31[[#990ce100]]
.getJavaLangClass() 
32[[#990ce100]]
.INT