CloneSet127


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.973method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112207
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/TarFileSet.java
212103
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ZipFileSet.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
207
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/TarFileSet.java

/**
 * A TarFileset accepts another TarFileSet or a FileSet as reference
 * FileSets are often used by the war task for the lib attribute
 * @param p the project to use
 * @return the abstract fileset instance
 */
protected AbstractFileSet getRef(Project p) {
  dieOnCircularReference(p);
  Object o = getRefid().getReferencedObject(p);
  if (o instanceof TarFileSet) {
    return (AbstractFileSet) o;
  }
  else
    if (o instanceof FileSet) {
      TarFileSet zfs = new TarFileSet((FileSet) o);
      configureFileSet(zfs);
      return zfs;
    }
    else {
      String msg = getRefid().getRefId() + " doesn\'t denote a tarfileset or a fileset";
      throw new BuildException(msg);
    }
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
103
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ZipFileSet.java

/**
 * A ZipFileset accepts another ZipFileSet or a FileSet as reference
 * FileSets are often used by the war task for the lib attribute
 * @param p the project to use
 * @return the abstract fileset instance
 */
protected AbstractFileSet getRef(Project p) {
  dieOnCircularReference(p);
  Object o = getRefid().getReferencedObject(p);
  if (o instanceof ZipFileSet) {
    return (AbstractFileSet) o;
  }
  else
    if (o instanceof FileSet) {
      ZipFileSet zfs = new ZipFileSet((FileSet) o);
      configureFileSet(zfs);
      return zfs;
    }
    else {
      String msg = getRefid().getRefId() + " doesn\'t denote a zipfileset or a fileset";
      throw new BuildException(msg);
    }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * A ZipFileset accepts another ZipFileSet or a FileSet as reference
     * FileSets are often used by the war task for the lib attribute
     * @param p the project to use
     * @return the abstract fileset instance
     */
/**
     * A TarFileset accepts another TarFileSet or a FileSet as reference
     * FileSets are often used by the war task for the lib attribute
     * @param p the project to use
     * @return the abstract fileset instance
     */
protected AbstractFileSet getRef(Project p) {
  dieOnCircularReference(p);
  Object o = getRefid().getReferencedObject(p);
  if (o instanceof [[#variablefde35e0]]) {
    return (AbstractFileSet) o;
  }
  else
    if (o instanceof FileSet) {
       [[#variablefde35e0]] zfs = new [[#variablefde35e0]]((FileSet) o);
      configureFileSet(zfs);
      return zfs;
    }
    else {
      String msg = getRefid().getRefId() +  [[#variablefde3960]];
      throw new BuildException(msg);
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fde35e0]]
TarFileSet 
12[[#fde35e0]]
ZipFileSet 
21[[#fde3960]]
" doesn\'t denote a tarfileset or a fileset" 
22[[#fde3960]]
" doesn\'t denote a zipfileset or a fileset"