CloneSet5661


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.972statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15198
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java
25278
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java
Clone Instance
1
Line Count
5
Source Line
198
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java

                if (invocationType.fPackage == this.fPackage) return true;

                ReferenceBinding currentType = invocationType;
                ReferenceBinding declaringClass = enclosingType(); // protected types always have an enclosing one
                if (declaringClass == invocationType) return true;


Clone Instance
2
Line Count
5
Source Line
278
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java

                // answer true if the invocationType is the declaringClass or they are in the same package
                // OR the invocationType is a subclass of the declaringClass
                //    AND the invocationType is the invocationType or its subclass
                //    OR the type is a static method accessed directly through a type
                //    OR previous assertions are true for one of the enclosing type
                if (invocationType.fPackage == this.fPackage) return true;

                ReferenceBinding currentType = invocationType;
                ReferenceBinding declaringClass = enclosingType(); // protected types always have an enclosing one
                if (declaringClass == null) return false; // could be null if incorrect top-level protected type


Clone AbstractionParameter Count: 2Parameter Bindings

// answer true if the invocationType is the declaringClass or they are in the same package
// OR the invocationType is a subclass of the declaringClass
//    AND the invocationType is the invocationType or its subclass
//    OR the type is a static method accessed directly through a type
//    OR previous assertions are true for one of the enclosing type
if (invocationType.fPackage == this.fPackage)
  return true;
ReferenceBinding currentType = invocationType;
ReferenceBinding declaringClass = enclosingType(); // protected types always have an enclosing one
if (declaringClass == [[#variable971c6f80]])
  return [[#variable971c6f40]]; // could be null if incorrect top-level protected type
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#971c6f80]]
null 
12[[#971c6f80]]
invocationType 
21[[#971c6f40]]
false 
22[[#971c6f40]]
true