CloneSet107


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25220.963class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125767
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java
226901
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java
Next
Last
Clone Instance
1
Line Count
25
Source Line
767
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java

/**
 * Adds text to the task, using the wrapper.
 *
 * @param buf A character array of the text within the element.
 *            Will not be <code>null</code>.
 * @param start The start element in the array.
 * @param count The number of characters to read from the array.
 */
public void characters(char[] buf, int start, int count) {
  wrapper.addText(buf, start, count);
}

/**
 * Handles the start of an element within a target. Task containers
 * will always use another task handler, and all other tasks
 * will always use a nested element handler.
 *
 * @param name The name of the element being started.
 *            Will not be <code>null</code>.
 * @param attrs Attributes of the element being started.
 *              Will not be <code>null</code>.
 *
 * @exception SAXParseException if an error occurs when initialising
 *                              the appropriate child handler
 */
public void startElement(String name, AttributeList attrs) throws SAXParseException {
  if (task instanceof TaskContainer) {
    // task can contain other tasks - no other nested elements possible
    new TaskHandler(helperImpl, this, (TaskContainer) task, wrapper, target).init(name, attrs);
  }
  else {
    new NestedElementHandler(helperImpl, this, task, wrapper, target).init(name, attrs);
  }
}


First
Previous
Clone Instance
2
Line Count
26
Source Line
901
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java

/**
 * Adds text to the element, using the wrapper.
 *
 * @param buf A character array of the text within the element.
 *            Will not be <code>null</code>.
 * @param start The start element in the array.
 * @param count The number of characters to read from the array.
 */
public void characters(char[] buf, int start, int count) {
  childWrapper.addText(buf, start, count);
}

/**
 * Handles the start of an element within this one. Task containers
 * will always use a task handler, and all other elements
 * will always use another nested element handler.
 *
 * @param name The name of the element being started.
 *            Will not be <code>null</code>.
 * @param attrs Attributes of the element being started.
 *              Will not be <code>null</code>.
 *
 * @exception SAXParseException if an error occurs when initialising
 *                              the appropriate child handler
 */
public void startElement(String name, AttributeList attrs) throws SAXParseException {
  if (child instanceof TaskContainer) {
    // taskcontainer nested element can contain other tasks - no other
    // nested elements possible
    new TaskHandler(helperImpl, this, (TaskContainer) child, childWrapper, target).init(name, attrs);
  }
  else {
    new NestedElementHandler(helperImpl, this, child, childWrapper, target).init(name, attrs);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Adds text to the task, using the wrapper.
         *
         * @param buf A character array of the text within the element.
         *            Will not be <code>null</code>.
         * @param start The start element in the array.
         * @param count The number of characters to read from the array.
         */
/**
         * Adds text to the element, using the wrapper.
         *
         * @param buf A character array of the text within the element.
         *            Will not be <code>null</code>.
         * @param start The start element in the array.
         * @param count The number of characters to read from the array.
         */
public void characters(char[] buf, int start, int count) {
   [[#variablefe99a20]].addText(buf, start, count);
}

/**
         * Handles the start of an element within a target. Task containers
         * will always use another task handler, and all other tasks
         * will always use a nested element handler.
         *
         * @param name The name of the element being started.
         *            Will not be <code>null</code>.
         * @param attrs Attributes of the element being started.
         *              Will not be <code>null</code>.
         *
         * @exception SAXParseException if an error occurs when initialising
         *                              the appropriate child handler
         */
/**
         * Handles the start of an element within this one. Task containers
         * will always use a task handler, and all other elements
         * will always use another nested element handler.
         *
         * @param name The name of the element being started.
         *            Will not be <code>null</code>.
         * @param attrs Attributes of the element being started.
         *              Will not be <code>null</code>.
         *
         * @exception SAXParseException if an error occurs when initialising
         *                              the appropriate child handler
         */
public void startElement(String name, AttributeList attrs) throws SAXParseException {
  if ( [[#variablefe999a0]]instanceof TaskContainer) {
    // task can contain other tasks - no other nested elements possible
    // taskcontainer nested element can contain other tasks - no other
    // nested elements possible
    new TaskHandler(helperImpl, this, (TaskContainer)  [[#variablefe999a0]],  [[#variablefe99a20]], target).init(name, attrs);
  }
  else {
    new NestedElementHandler(helperImpl, this,  [[#variablefe999a0]],  [[#variablefe99a20]], target).init(name, attrs);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe99a20]]
wrapper 
12[[#fe99a20]]
childWrapper 
21[[#fe999a0]]
task 
22[[#fe999a0]]
child