CloneSet1157


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122196
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CharArrayCache.java
222135
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ObjectCache.java
Clone Instance
1
Line Count
22
Source Line
196
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CharArrayCache.java

/**
 * Returns the number of elements contained in the hashtable.
 *
 * @return <CODE>int</CODE> The size of the table
 */
public int size() {
        return this.elementSize;
}

/**
 * Converts to a rather lengthy String.
 *
 * return String the ascii representation of the receiver
 */
public String toString() {
        int max = size();
        StringBuffer buf = new StringBuffer();
        buf.append("{"); //$NON-NLS-1$
        for (int i = 0; i < max; ++i) {
                if (this.keyTable[i] != null) {
                        buf.append(this.keyTable[i]).append("->").append(this.valueTable[i]); //$NON-NLS-1$
                }
                if (i < max) {
                        buf.append(", "); //$NON-NLS-1$
                }
        }
        buf.append("}"); //$NON-NLS-1$
        return buf.toString();
}


Clone Instance
2
Line Count
22
Source Line
135
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/ObjectCache.java

/**
 * Returns the number of elements contained in the hashtable.
 *
 * @return <CODE>int</CODE> The size of the table
 */
public int size() {
        return this.elementSize;
}

/**
 * Converts to a rather lengthy String.
 *
 * @return String the ascii representation of the receiver
 */
public String toString() {
        int max = size();
        StringBuffer buf = new StringBuffer();
        buf.append("{"); //$NON-NLS-1$
        for (int i = 0; i < max; ++i) {
                if (this.keyTable[i] != null) {
                        buf.append(this.keyTable[i]).append("->").append(this.valueTable[i]); //$NON-NLS-1$
                }
                if (i < max) {
                        buf.append(", "); //$NON-NLS-1$
                }
        }
        buf.append("}"); //$NON-NLS-1$
        return buf.toString();
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
 * Returns the number of elements contained in the hashtable.
 *
 * @return <CODE>int</CODE> The size of the table
 */
public int size() {
  return this.elementSize;
}

/**
 * Converts to a rather lengthy String.
 *
 * return String the ascii representation of the receiver
 */
/**
 * Converts to a rather lengthy String.
 *
 * @return String the ascii representation of the receiver
 */
public String toString() {
  int max = size();
  StringBuffer buf = new StringBuffer();
  buf.append("{"); //$NON-NLS-1$
  for (int i = 0; i < max; ++i) {
    if (this.keyTable[i] != null) {
      buf.append(this.keyTable[i]).append("->").append(this.valueTable[i]); //$NON-NLS-1$
    }
    if (i < max) {
      buf.append(", "); //$NON-NLS-1$
    }
  }
  buf.append("}"); //$NON-NLS-1$
  return buf.toString();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None