CloneSet374


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20340.966statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120657
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.java
2201007
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java
327579
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java
Clone Instance
1
Line Count
20
Source Line
657
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.java

                    ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
                    if (this.type != otherParamType.type)
                        return false;
                    if ( !isStatic()) { // static member types do not compare their enclosing
                        ReferenceBinding enclosing = enclosingType();
                        if (enclosing != null) {
                                ReferenceBinding otherEnclosing = otherParamType.enclosingType();
                                if (otherEnclosing == null) return false;
                                if ((otherEnclosing.tagBits&  TagBits.HasDirectWildcard) == 0) {
                                                        if (enclosing != otherEnclosing) return false;
                                }
                                else   {
                                        if ( !enclosing.isEquivalentTo(otherParamType.enclosingType())) return false;
                                }
                        }
                    }
                    int length = this.arguments == null ? 0:  this.arguments.length;
                    TypeBinding[] otherArguments = otherParamType.arguments;
                    int otherLength = otherArguments == null ? 0:  otherArguments.length;
                    if (otherLength != length)
                        return false;


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

                        ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
                        if (this != otherParamType.type)
                                return false;
                        if ( !isStatic()) { // static member types do not compare their enclosing
                ReferenceBinding enclosing = enclosingType();
                if (enclosing != null) {
                        ReferenceBinding otherEnclosing = otherParamType.enclosingType();
                        if (otherEnclosing == null) return false;
                        if ((otherEnclosing.tagBits&  TagBits.HasDirectWildcard) == 0) {
                                                if (enclosing != otherEnclosing) return false;
                        }
                        else   {
                                if ( !enclosing.isEquivalentTo(otherParamType.enclosingType())) return false;
                        }
                }
                        }
                        int length = this.typeVariables == null ? 0:  this.typeVariables.length;
                        TypeBinding[] otherArguments = otherParamType.arguments;
                        int otherLength = otherArguments == null ? 0:  otherArguments.length;
                        if (otherLength != length)
                                return false;


Clone Instance
3
Line Count
27
Source Line
579
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java

                ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
                if (paramType.type != otherParamType.type)
                        return false;
                if ( !paramType.isStatic()) { // static member types do not compare their enclosing
                        ReferenceBinding enclosing = enclosingType();
                        if (enclosing != null) {
                                ReferenceBinding otherEnclosing = otherParamType
                                                .enclosingType();
                                if (otherEnclosing == null)
                                        return false;
                                if ((otherEnclosing.tagBits&  TagBits.HasDirectWildcard) == 0) {
                                        if (enclosing != otherEnclosing)
                                                return false;
                                }
                                else   {
                                        if ( !enclosing.isEquivalentTo(otherParamType
                                                         .enclosingType()))
                                                return false;
                                }
                        }
                }
                int length = paramType.arguments == null ? 0:
                                  paramType.arguments.length;
                TypeBinding[] otherArguments = otherParamType.arguments;
                int otherLength = otherArguments == null ? 0:
                                  otherArguments.length;
                if (otherLength != length)
                        return false;


Clone AbstractionParameter Count: 4Parameter Bindings

ParameterizedTypeBinding otherParamType = (ParameterizedTypeBinding) otherType;
if ( [[#variableb9ab73e0]]!= otherParamType.type)
  return false;
if ( ! [[#variableb0b14b80]]) { // static member types do not compare their enclosing
  ReferenceBinding enclosing = enclosingType();
  if (enclosing != null) {
    ReferenceBinding otherEnclosing = otherParamType.enclosingType();
    if (otherEnclosing == null)
      return false;
    if ((otherEnclosing.tagBits&TagBits.HasDirectWildcard) == 0) {
      if (enclosing != otherEnclosing)
        return false;
    }
    else {
      if ( !enclosing.isEquivalentTo(otherParamType.enclosingType()))
        return false;
    }
  }
}
int length = [[#variable90bf8f00]]. [[#variableb9ab7360]]== null ? 0: [[#variable90bf8f00]]. [[#variableb9ab7360]].length;
TypeBinding[] otherArguments = otherParamType.arguments;
int otherLength = otherArguments == null ? 0: otherArguments.length;
if (otherLength != length)
  return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9ab73e0]]
this.type 
12[[#b9ab73e0]]
paramType.type 
13[[#b9ab73e0]]
this 
21[[#b0b14b80]]
isStatic() 
22[[#b0b14b80]]
paramType.isStatic() 
23[[#b0b14b80]]
isStatic() 
31[[#90bf8f00]]
this 
32[[#90bf8f00]]
paramType 
33[[#90bf8f00]]
this 
41[[#b9ab7360]]
arguments 
42[[#b9ab7360]]
arguments 
43[[#b9ab7360]]
typeVariables