CloneSet362


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.964method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
161106
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
26114
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/SubAnt.java
Next
Last
Clone Instance
1
Line Count
6
Source Line
1106
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

/**
 * Handle an input request by this task.
 * @see Task#handleInput(byte[], int, int)
 * This implementation delegates to a runner if it
 * present.
 * @param buffer the buffer into which data is to be read.
 * @param offset the offset into the buffer at which data is stored.
 * @param length the amount of data to read.
 *
 * @return the number of bytes read.
 * @exception IOException if the data cannot be read.
 *
 * @since Ant 1.6
 */
protected int handleInput(byte[] buffer, int offset, int length) throws IOException {
  if (runner != null) {
    return runner.handleInput(buffer, offset, length);
  }
  else {
    return super.handleInput(buffer, offset, length);
  }
}


First
Previous
Clone Instance
2
Line Count
6
Source Line
114
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/SubAnt.java

/**
 * Process input into the ant task
 *
 * @param buffer the buffer into which data is to be read.
 * @param offset the offset into the buffer at which data is stored.
 * @param length the amount of data to read
 *
 * @return the number of bytes read
 *
 * @exception IOException if the data cannot be read
 *
 * @see Task#handleInput(byte[], int, int)
 *
 * @since Ant 1.6.2
 */
public int handleInput(byte[] buffer, int offset, int length) throws IOException {
  if (ant != null) {
    return ant.handleInput(buffer, offset, length);
  }
  else {
    return super.handleInput(buffer, offset, length);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable100ecaa0]]int handleInput(byte[] buffer, int offset, int length) throws IOException {
  if ( [[#variable100eca40]]!= null) {
    return [[#variable100eca40]].handleInput(buffer, offset, length);
  }
  else {
    return super.handleInput(buffer, offset, length);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100ecaa0]]
/**
 * Handle an input request by this task.
 * @see Task#handleInput(byte[], int, int)
 * This implementation delegates to a runner if it
 * present.
 * @param buffer the buffer into which data is to be read.
 * @param offset the offset into the buffer at which data is stored.
 * @param length the amount of data to read.
 *
 * @return the number of bytes read.
 * @exception IOException if the data cannot be read.
 *
 * @since Ant 1.6
 */
protected 
12[[#100ecaa0]]
/**
 * Process input into the ant task
 *
 * @param buffer the buffer into which data is to be read.
 * @param offset the offset into the buffer at which data is stored.
 * @param length the amount of data to read
 *
 * @return the number of bytes read
 *
 * @exception IOException if the data cannot be read
 *
 * @see Task#handleInput(byte[], int, int)
 *
 * @since Ant 1.6.2
 */
public 
21[[#100eca40]]
runner 
22[[#100eca40]]
ant