CloneSet1585


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15250.954statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1154868
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
2155177
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
15
Source Line
4868
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                                                                if (PROPOSE_MEMBER_TYPES) {
                                                                        if (this.assistNodeIsClass) {
                                                                                if ( !localType.isClass())
                                                                                                         continue next;
                                                                        }
                                                                        else   if (this.assistNodeIsInterface) {
                                                                                if ( !localType.isInterface() && !localType.isAnnotationType())
                                                                                                                                              continue next;
                                                                               }
                                                                               else
                                                                               if (this.assistNodeIsAnnotation) {
                                                                                if ( !localType.isAnnotationType())
                                                                                                                  continue next;
                                                                               }
                                                                }
                                                                int relevance = computeBaseRelevance();
                                                                relevance += computeRelevanceForInterestingProposal();
                                                                relevance += computeRelevanceForCaseMatching(typeName, localType.sourceName);
                                                                relevance += computeRelevanceForExpectingType(localType);
                                                                relevance += computeRelevanceForException(localType.sourceName);


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

                                                        if (PROPOSE_MEMBER_TYPES) {
                                                                if (this.assistNodeIsClass) {
                                                                        if ( !refBinding.isClass())
                                                                                                  continue next;
                                                                }
                                                                else   if (this.assistNodeIsInterface) {
                                                                        if ( !refBinding.isInterface() && !refBinding.isAnnotationType())
                                                                                                                                        continue next;
                                                                       }
                                                                       else
                                                                       if (this.assistNodeIsAnnotation) {
                                                                        if ( !refBinding.isAnnotationType())
                                                                                                           continue next;
                                                                       }
                                                        }
                                                        int relevance = computeBaseRelevance();
                                                        relevance += computeRelevanceForInterestingProposal();
                                                        relevance += computeRelevanceForCaseMatching(token, typeName);
                                                        relevance += computeRelevanceForExpectingType(refBinding);
                                                        relevance += computeRelevanceForQualification(isQualified);


Clone AbstractionParameter Count: 5Parameter Bindings

if (PROPOSE_MEMBER_TYPES) {
  if (this.assistNodeIsClass) {
    if ( ! [[#variable55392fc0]].isClass())
      continue next;
  }
  else
    if (this.assistNodeIsInterface) {
      if ( ! [[#variable55392fc0]].isInterface() && ! [[#variable55392fc0]].isAnnotationType())
        continue next;
    }
    else
      if (this.assistNodeIsAnnotation) {
        if ( ! [[#variable55392fc0]].isAnnotationType())
          continue next;
      }
}
int relevance = computeBaseRelevance();
relevance += computeRelevanceForInterestingProposal();
relevance += computeRelevanceForCaseMatching( [[#variable55392ec0]],  [[#variable55392e40]]);
relevance += computeRelevanceForExpectingType( [[#variable55392fc0]]);
relevance += [[#variable55392e60]]( [[#variable55392ce0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#55392fc0]]
refBinding 
12[[#55392fc0]]
localType 
21[[#55392ec0]]
token 
22[[#55392ec0]]
typeName 
31[[#55392e40]]
typeName 
32[[#55392e40]]
localType.sourceName 
41[[#55392e60]]
computeRelevanceForQualification 
42[[#55392e60]]
computeRelevanceForException 
51[[#55392ce0]]
isQualified 
52[[#55392ce0]]
localType.sourceName