| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 2 | 0.984 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 738 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java |
| 2 | 10 | 935 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java |
| ||||
CompilationUnitScope unitScope = compilationUnitScope();
unitScope.recordReference(enclosingType, typeName);
ReferenceBinding memberType = enclosingType.getMemberType(typeName);
if (memberType != null) {
unitScope.recordTypeReference(memberType);
if (enclosingReceiverType == null ?
memberType.canBeSeenBy(getCurrentPackage()):
memberType.canBeSeenBy(enclosingType, enclosingReceiverType))
return memberType;
return new ProblemReferenceBinding(typeName, memberType, ProblemReasons.NotVisible);
}
|
| ||||
CompilationUnitScope unitScope = compilationUnitScope();
unitScope.recordReference(enclosingType, typeName);
ReferenceBinding memberType = enclosingType.getMemberType(typeName);
if (memberType != null) {
unitScope.recordTypeReference(memberType);
if (enclosingSourceType == null ?
memberType.canBeSeenBy(currentPackage):
memberType.canBeSeenBy(enclosingType, enclosingSourceType))
return memberType;
return new ProblemReferenceBinding(typeName, memberType, ProblemReasons.NotVisible);
}
|
| |||
CompilationUnitScope unitScope = compilationUnitScope();
unitScope.recordReference(enclosingType, typeName);
ReferenceBinding memberType = enclosingType.getMemberType(typeName);
if (memberType != null) {
unitScope.recordTypeReference(memberType);
if ( [[#variable9d9f5600]]== null ? memberType.canBeSeenBy( [[#variable9d9f5580]]): memberType.canBeSeenBy(enclosingType, [[#variable9d9f5600]]))
return memberType;
return new ProblemReferenceBinding(typeName, memberType, ProblemReasons.NotVisible);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9d9f5600]] | enclosingReceiverType |
| 1 | 2 | [[#9d9f5600]] | enclosingSourceType |
| 2 | 1 | [[#9d9f5580]] | getCurrentPackage() |
| 2 | 2 | [[#9d9f5580]] | currentPackage |