CloneSet6856


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1651
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java
26132
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
Clone Instance
1
Line Count
6
Source Line
51
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java

/* Answer true if the receiver is visible to the invocationPackage.
*/
public final boolean canBeSeenBy(PackageBinding invocationPackage) {
        if (isPublic()) return true;
        if (isPrivate()) return false;

        // isProtected() or isDefault()
        return invocationPackage == declaringClass.getPackage();
}


Clone Instance
2
Line Count
6
Source Line
132
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java

/* Answer true if the receiver is visible to the invocationPackage.
*/
public final boolean canBeSeenBy(PackageBinding invocationPackage) {
        if (isPublic()) return true;
        if (isPrivate()) return false;

        // isProtected() or isDefault()
        return invocationPackage == declaringClass.getPackage();
}


Clone AbstractionParameter Count: 0Parameter Bindings

/* Answer true if the receiver is visible to the invocationPackage.
*/
public final boolean canBeSeenBy(PackageBinding invocationPackage) {
  if (isPublic())
    return true;
  if (isPrivate())
    return false;
  // isProtected() or isDefault()
  return invocationPackage == declaringClass.getPackage();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None