CloneSet314


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.967class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115109
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/zip/ZipLong.java
215108
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/zip/ZipShort.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
109
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/zip/ZipLong.java

/**
 * Helper method to get the value as a Java long from a four-byte array
 * @param bytes the array of bytes
 * @return the correspondanding Java long value
 */
public static long getValue(byte[] bytes) {
  return getValue(bytes, 0);
}

/**
 * Override to make two instances with same value equal.
 * @param o an object to compare
 * @return true if the objects are equal
 * @since 1.1
 */
public boolean equals(Object o) {
  if (o == null || !(o instanceof ZipLong)) {
    return false;
  }
  return value == ((ZipLong) o).getValue();
}


First
Previous
Clone Instance
2
Line Count
15
Source Line
108
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/zip/ZipShort.java

/**
 * Helper method to get the value as a java int from a two-byte array
 * @param bytes the array of bytes
 * @return the correspondanding java int value
 */
public static int getValue(byte[] bytes) {
  return getValue(bytes, 0);
}

/**
 * Override to make two instances with same value equal.
 * @param o an object to compare
 * @return true if the objects are equal
 * @since 1.1
 */
public boolean equals(Object o) {
  if (o == null || !(o instanceof ZipShort)) {
    return false;
  }
  return value == ((ZipShort) o).getValue();
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Helper method to get the value as a Java long from a four-byte array
     * @param bytes the array of bytes
     * @return the correspondanding Java long value
     */
/**
     * Helper method to get the value as a java int from a two-byte array
     * @param bytes the array of bytes
     * @return the correspondanding java int value
     */
public static [[#variable100db360]] getValue(byte[] bytes) {
  return getValue(bytes, 0);
}

/**
     * Override to make two instances with same value equal.
     * @param o an object to compare
     * @return true if the objects are equal
     * @since 1.1
     */
public boolean equals(Object o) {
  if (o == null || !(o instanceof [[#variable100db0a0]])) {
    return false;
  }
  return value == (( [[#variable100db0a0]]) o).getValue();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100db360]]
long 
12[[#100db360]]
int 
21[[#100db0a0]]
ZipLong 
22[[#100db0a0]]
ZipShort