CloneSet109


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.988method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116152
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DeweyDecimal.java
216177
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DeweyDecimal.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
152
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DeweyDecimal.java

/**
 * Return <code>true</code> if this <code>DeweyDecimal</code> is
 * greater than the other <code>DeweyDecimal</code>.
 *
 * @param other the other DeweyDecimal
 * @return true if greater than other DeweyDecimal, false otherwise
 */
public boolean isGreaterThan( final DeweyDecimal other) {
  final int max = Math.max(other.components.length, components.length);
  for (int i = 0; i < max; i++) {
    final int component1 = (i < components.length) ? components[i]: 0;
    final int component2 = (i < other.components.length) ? other.components[i]: 0;
    if (component2 > component1) {
      return false;
    }
    if (component2 < component1) {
      return true;
    }
  }
  return false; // Exact match
}


First
Previous
Clone Instance
2
Line Count
16
Source Line
177
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DeweyDecimal.java

/**
 * Return <code>true</code> if this <code>DeweyDecimal</code> is
 * greater than or equal to the other <code>DeweyDecimal</code>.
 *
 * @param other the other DeweyDecimal
 * @return true if greater than or equal to other DeweyDecimal, false otherwise
 */
public boolean isGreaterThanOrEqual( final DeweyDecimal other) {
  final int max = Math.max(other.components.length, components.length);
  for (int i = 0; i < max; i++) {
    final int component1 = (i < components.length) ? components[i]: 0;
    final int component2 = (i < other.components.length) ? other.components[i]: 0;
    if (component2 > component1) {
      return false;
    }
    if (component2 < component1) {
      return true;
    }
  }
  return true; // Exact match
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Return <code>true</code> if this <code>DeweyDecimal</code> is
     * greater than or equal to the other <code>DeweyDecimal</code>.
     *
     * @param other the other DeweyDecimal
     * @return true if greater than or equal to other DeweyDecimal, false otherwise
     */
/**
     * Return <code>true</code> if this <code>DeweyDecimal</code> is
     * greater than the other <code>DeweyDecimal</code>.
     *
     * @param other the other DeweyDecimal
     * @return true if greater than other DeweyDecimal, false otherwise
     */
public boolean  [[#variablefe6f2a0]]( final DeweyDecimal other) {
  final int max = Math.max(other.components.length, components.length);
  for (int i = 0; i < max; i++) {
    final int component1 = (i < components.length) ? components[i]: 0;
    final int component2 = (i < other.components.length) ? other.components[i]: 0;
    if (component2 > component1) {
      return false;
    }
    if (component2 < component1) {
      return true;
    }
  }
  return [[#variablefe6f240]]; // Exact match
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe6f2a0]]
isGreaterThan 
12[[#fe6f2a0]]
isGreaterThanOrEqual 
21[[#fe6f240]]
false 
22[[#fe6f240]]
true