CloneSet1362


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12087
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java
220226
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
Clone Instance
1
Line Count
20
Source Line
87
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java

                do {
                        if (currentType.findSuperTypeWithSameErasure(declaringErasure) != null) {
                                if (invocationSite.isSuperAccess())
                                        return true;
                                // receiverType can be an array binding in one case... see if you can change it
                                if (receiverType instanceof ArrayBinding)
                                        return false;
                                if (isStatic()) {
                                        if (depth > 0) invocationSite.setDepth(depth);
                                        return true; // see 1FMEPDL - return invocationSite.isTypeAccess();
                                }
                                if (currentType == receiverErasure || receiverErasure.findSuperTypeWithSameErasure(currentType) != null) {
                                        if (depth > 0) invocationSite.setDepth(depth);
                                        return true;
                                }
                        }
                        depth++;
                        currentType = currentType.enclosingType();
                }
                while (  currentType != null);
                return false;


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

                do {
                        if (currentType.findSuperTypeWithSameErasure(declaringErasure) != null) {
                                if (invocationSite.isSuperAccess())
                                        return true;
                                // receiverType can be an array binding in one case... see if you can change it
                                if (receiverType instanceof ArrayBinding)
                                        return false;
                                if (isStatic()) {
                                        if (depth > 0) invocationSite.setDepth(depth);
                                        return true; // see 1FMEPDL - return invocationSite.isTypeAccess();
                                }
                                if (currentType == receiverErasure || receiverErasure.findSuperTypeWithSameErasure(currentType) != null) {
                                        if (depth > 0) invocationSite.setDepth(depth);
                                        return true;
                                }
                        }
                        depth++;
                        currentType = currentType.enclosingType();
                }
                while (  currentType != null);
                return false;


Clone AbstractionParameter Count: 0Parameter Bindings

do {
  if (currentType.findSuperTypeWithSameErasure(declaringErasure) != null) {
    if (invocationSite.isSuperAccess())
      return true;
    // receiverType can be an array binding in one case... see if you can change it
    if (receiverType instanceof ArrayBinding)
      return false;
    if (isStatic()) {
      if (depth > 0)
        invocationSite.setDepth(depth);
      return true; // see 1FMEPDL - return invocationSite.isTypeAccess();
    }
    if (currentType == receiverErasure || receiverErasure.findSuperTypeWithSameErasure(currentType) != null) {
      if (depth > 0)
        invocationSite.setDepth(depth);
      return true;
    }
  }
  depth++;
  currentType = currentType.enclosingType();
}
while (currentType != null);
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None