Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 1 | 0.991 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 5098 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java |
2 | 16 | 5324 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#be7f8d40]] | accessibility |
1 | 2 | [[#be7f8d40]] | IAccessRule.K_ACCESSIBLE |