CloneSet103


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16410.976class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116309
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java
216276
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecuteOn.java
316360
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Expand.java
416129
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/UpToDate.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
309
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java

/**
 * Define the mapper to map source to destination files.
 * @return a mapper to be configured.
 * @exception BuildException if more than one mapper is defined.
 */
public Mapper createMapper() throws BuildException {
  if (mapperElement != null) {
    throw new BuildException("Cannot define more than one mapper", getLocation());
  }
  mapperElement = new Mapper(getProject());
  return mapperElement;
}

/**
 * Add a nested filenamemapper.
 * @param fileNameMapper the mapper to add.
 * @since Ant 1.6.3
 */
public void add(FileNameMapper fileNameMapper) {
  createMapper().add(fileNameMapper);
}


Next
Previous
Clone Instance
2
Line Count
16
Source Line
276
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecuteOn.java

/**
 * Create a nested Mapper element to use for mapping
 * source files to target files.
 * @return <code>Mapper</code>.
 * @throws BuildException if more than one mapper is defined.
 */
public Mapper createMapper() throws BuildException {
  if (mapperElement != null) {
    throw new BuildException("Cannot define more than one mapper", getLocation());
  }
  mapperElement = new Mapper(getProject());
  return mapperElement;
}

/**
 * Add a nested FileNameMapper.
 * @param fileNameMapper the mapper to add.
 * @since Ant 1.6.3
 */
public void add(FileNameMapper fileNameMapper) {
  createMapper().add(fileNameMapper);
}


Next
Previous
Clone Instance
3
Line Count
16
Source Line
360
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Expand.java

/**
 * Defines the mapper to map source entries to destination files.
 * @return a mapper to be configured
 * @exception BuildException if more than one mapper is defined
 * @since Ant1.7
 */
public Mapper createMapper() throws BuildException {
  if (mapperElement != null) {
    throw new BuildException(ERROR_MULTIPLE_MAPPERS, getLocation());
  }
  mapperElement = new Mapper(getProject());
  return mapperElement;
}

/**
 * A nested filenamemapper
 * @param fileNameMapper the mapper to add
 * @since Ant 1.6.3
 */
public void add(FileNameMapper fileNameMapper) {
  createMapper().add(fileNameMapper);
}


First
Previous
Clone Instance
4
Line Count
16
Source Line
129
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/UpToDate.java

/**
 * Defines the FileNameMapper to use (nested mapper element).
 * @return a mapper to be configured
 * @throws BuildException if more than one mapper is defined
 */
public Mapper createMapper() throws BuildException {
  if (mapperElement != null) {
    throw new BuildException("Cannot define more than one mapper", getLocation());
  }
  mapperElement = new Mapper(getProject());
  return mapperElement;
}

/**
 * A nested filenamemapper
 * @param fileNameMapper the mapper to add
 * @since Ant 1.6.3
 */
public void add(FileNameMapper fileNameMapper) {
  createMapper().add(fileNameMapper);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Defines the FileNameMapper to use (nested mapper element).
     * @return a mapper to be configured
     * @throws BuildException if more than one mapper is defined
     */
/**
     * Defines the mapper to map source entries to destination files.
     * @return a mapper to be configured
     * @exception BuildException if more than one mapper is defined
     * @since Ant1.7
     */
/**
     * Create a nested Mapper element to use for mapping
     * source files to target files.
     * @return <code>Mapper</code>.
     * @throws BuildException if more than one mapper is defined.
     */
/**
     * Define the mapper to map source to destination files.
     * @return a mapper to be configured.
     * @exception BuildException if more than one mapper is defined.
     */
public Mapper createMapper() throws BuildException {
  if (mapperElement != null) {
    throw new BuildException( [[#variablefe23360]], getLocation());
  }
  mapperElement = new Mapper(getProject());
  return mapperElement;
}

/**
     * A nested filenamemapper
     * @param fileNameMapper the mapper to add
     * @since Ant 1.6.3
     */
/**
     * Add a nested FileNameMapper.
     * @param fileNameMapper the mapper to add.
     * @since Ant 1.6.3
     */
/**
     * Add a nested filenamemapper.
     * @param fileNameMapper the mapper to add.
     * @since Ant 1.6.3
     */
public void add(FileNameMapper fileNameMapper) {
  createMapper().add(fileNameMapper);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe23360]]
"Cannot define more than one mapper" 
12[[#fe23360]]
"Cannot define more than one mapper" 
13[[#fe23360]]
ERROR_MULTIPLE_MAPPERS 
14[[#fe23360]]
"Cannot define more than one mapper"