CloneSet557


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118394
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java
218434
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java
Clone Instance
1
Line Count
18
Source Line
394
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java

    /* (non-Javadoc)
     * @see org.eclipse.jdt.internal.compiler.lookup.Binding#readableName()
     */
    public char[] readableName() {
        switch (this.boundKind) {
            case Wildcard.UNBOUND:
                return TypeConstants.WILDCARD_NAME;
            case Wildcard.EXTENDS:
                if (this.otherBounds == null)
                        return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_EXTENDS, this.bound.readableName());
                StringBuffer buffer = new StringBuffer(10);
                buffer.append(this.bound.readableName());
                for (int i = 0, length = this.otherBounds.length; i < length; i++) {
                        buffer.append('&').append(this.otherBounds[i].readableName());
                }
                int length;
                                char[] result = new char[length = buffer.length()];
                                buffer.getChars(0, length, result, 0);
                                return result;
                        default: // SUPER
                            return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_SUPER, this.bound.readableName());
          }
    }


Clone Instance
2
Line Count
18
Source Line
434
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java

    /* (non-Javadoc)
     * @see org.eclipse.jdt.internal.compiler.lookup.Binding#shortReadableName()
     */
    public char[] shortReadableName() {
        switch (this.boundKind) {
            case Wildcard.UNBOUND:
                return TypeConstants.WILDCARD_NAME;
            case Wildcard.EXTENDS:
                if (this.otherBounds == null)
                        return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_EXTENDS, this.bound.shortReadableName());
                StringBuffer buffer = new StringBuffer(10);
                buffer.append(this.bound.shortReadableName());
                for (int i = 0, length = this.otherBounds.length; i < length; i++) {
                        buffer.append('&').append(this.otherBounds[i].shortReadableName());
                }
                int length;
                                char[] result = new char[length = buffer.length()];
                                buffer.getChars(0, length, result, 0);
                                return result;
                        default: // SUPER
                            return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_SUPER, this.bound.shortReadableName());
          }
    }


Clone AbstractionParameter Count: 1Parameter Bindings

/* (non-Javadoc)
     * @see org.eclipse.jdt.internal.compiler.lookup.Binding#readableName()
     */
/* (non-Javadoc)
     * @see org.eclipse.jdt.internal.compiler.lookup.Binding#shortReadableName()
     */
public char[]  [[#variableb5ada4a0]]() {
  switch (this.boundKind) {
    case Wildcard.UNBOUND:
      return TypeConstants.WILDCARD_NAME;
    case Wildcard.EXTENDS:
      if (this.otherBounds == null)
        return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_EXTENDS, this.bound. [[#variableb5ada4a0]]());
      StringBuffer buffer = new StringBuffer(10);
      buffer.append(this.bound. [[#variableb5ada4a0]]());
      for (int i = 0, length = this.otherBounds.length; i < length; i++) {
        buffer.append('&').append(this.otherBounds[i]. [[#variableb5ada4a0]]());
      }
      int length;
      char[] result = new char[length = buffer.length()];
      buffer.getChars(0, length, result, 0);
      return result;
    default: // SUPER
      return CharOperation.concat(TypeConstants.WILDCARD_NAME, TypeConstants.WILDCARD_SUPER, this.bound. [[#variableb5ada4a0]]());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5ada4a0]]
readableName 
12[[#b5ada4a0]]
shortReadableName