CloneSet1296


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.969statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117172
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
218230
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java
Clone Instance
1
Line Count
17
Source Line
172
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java

                                ReferenceBinding type = localType;
                                // check that the member does not conflict with an enclosing type
                                do {
                                        if (CharOperation.equals(type.sourceName, memberContext.name)) {
                                                problemReporter().hidingEnclosingType(memberContext);
                                                continue nextMember;
                                        }
                                        type = type.enclosingType();
                                }
                                while (  type != null);
                                // check the member type does not conflict with another sibling member type
                                for (int j = 0; j < i; j++) {
                                        if (CharOperation.equals(referenceContext.memberTypes[j].name, memberContext.name)) {
                                                problemReporter().duplicateNestedType(memberContext);
                                                continue nextMember;
                                        }
                                }
                                ClassScope memberScope = new ClassScope(this, referenceContext.memberTypes[i]);


Clone Instance
2
Line Count
18
Source Line
230
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ClassScope.java

                                ReferenceBinding type = sourceType;
                                // check that the member does not conflict with an enclosing type
                                do {
                                        if (CharOperation.equals(type.sourceName, memberContext.name)) {
                                                problemReporter().hidingEnclosingType(memberContext);
                                                continue nextMember;
                                        }
                                        type = type.enclosingType();
                                }
                                while (  type != null);
                                // check that the member type does not conflict with another sibling member type
                                for (int j = 0; j < i; j++) {
                                        if (CharOperation.equals(referenceContext.memberTypes[j].name, memberContext.name)) {
                                                problemReporter().duplicateNestedType(memberContext);
                                                continue nextMember;
                                        }
                                }
                                ClassScope memberScope = new ClassScope(this, memberContext);


Clone AbstractionParameter Count: 2Parameter Bindings

ReferenceBinding type = [[#variable9dc85800]];
// check that the member does not conflict with an enclosing type
do {
  if (CharOperation.equals(type.sourceName, memberContext.name)) {
    problemReporter().hidingEnclosingType(memberContext);
    continue nextMember;
  }
  type = type.enclosingType();
}
while (type != null);
// check the member type does not conflict with another sibling member type
// check that the member type does not conflict with another sibling member type
for (int j = 0; j < i; j++) {
  if (CharOperation.equals(referenceContext.memberTypes[j].name, memberContext.name)) {
    problemReporter().duplicateNestedType(memberContext);
    continue nextMember;
  }
}
ClassScope memberScope = new ClassScope(this,  [[#variableba495720]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9dc85800]]
localType 
12[[#9dc85800]]
sourceType 
21[[#ba495720]]
referenceContext.memberTypes[i] 
22[[#ba495720]]
memberContext