Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.972 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 198 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java |
2 | 5 | 278 | 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; |
| ||||
// 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 |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#971c6f80]] | null |
1 | 2 | [[#971c6f80]] | invocationType |
2 | 1 | [[#971c6f40]] | false |
2 | 2 | [[#971c6f40]] | true |