CloneSet1020


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

                                relevance += computeRelevanceForExpectingType(sourceType);
                                relevance += computeRelevanceForQualification(false);
                                relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); // no access restriction for type in the current unit

                                if (sourceType.isAnnotationType()) {
                                        relevance += computeRelevanceForAnnotation();
                                }
                                else   if (sourceType.isInterface()) {
                                        relevance += computeRelevanceForInterface();
                                       }
                                       else
                                       if (sourceType.isClass()) {
                                        relevance += computeRelevanceForClass();
                                        relevance += computeRelevanceForException(sourceType.sourceName);
                                       }
                                this.noProposal = false;
                                if ( !this.requestor.isIgnored(CompletionProposal.TYPE_REF)) {
                                        char[] typeName = sourceType.sourceName();
                                        createTypeProposal(sourceType, typeName, IAccessRule.K_ACCESSIBLE, typeName, relevance);
                                }


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

                                relevance += computeRelevanceForExpectingType(sourceType);
                                relevance += computeRelevanceForQualification(false);
                                relevance += computeRelevanceForRestrictions(accessibility);

                                if (sourceType.isAnnotationType()) {
                                        relevance += computeRelevanceForAnnotation();
                                }
                                else   if (sourceType.isInterface()) {
                                        relevance += computeRelevanceForInterface();
                                       }
                                       else
                                       if (sourceType.isClass()) {
                                        relevance += computeRelevanceForClass();
                                        relevance += computeRelevanceForException(sourceType.sourceName);
                                       }
                                this.noProposal = false;
                                if ( !this.requestor.isIgnored(CompletionProposal.TYPE_REF)) {
                                        char[] typeName = sourceType.sourceName();
                                        createTypeProposal(sourceType, typeName, IAccessRule.K_ACCESSIBLE, typeName, relevance);
                                }


Clone AbstractionParameter Count: 1Parameter Bindings

relevance += computeRelevanceForExpectingType(sourceType);
relevance += computeRelevanceForQualification(false);
relevance += computeRelevanceForRestrictions( [[#variablebe7f8d40]]); // no access restriction for type in the current unit
if (sourceType.isAnnotationType()) {
  relevance += computeRelevanceForAnnotation();
}
else
  if (sourceType.isInterface()) {
    relevance += computeRelevanceForInterface();
  }
  else
    if (sourceType.isClass()) {
      relevance += computeRelevanceForClass();
      relevance += computeRelevanceForException(sourceType.sourceName);
    }
this.noProposal = false;
if ( !this.requestor.isIgnored(CompletionProposal.TYPE_REF)) {
  char[] typeName = sourceType.sourceName();
  createTypeProposal(sourceType, typeName, IAccessRule.K_ACCESSIBLE, typeName, relevance);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#be7f8d40]]
accessibility 
12[[#be7f8d40]]
IAccessRule.K_ACCESSIBLE