CloneSet262


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

/**
 * Return a TarFileSet that has the same properties
 * as this one.
 * @return the cloned tarFileSet
 */
public Object clone() {
  if (isReference()) {
    return ((TarFileSet) getRef(getProject())).clone();
  }
  else {
    return super.clone();
  }
}

/**
 * A check attributes for TarFileSet.
 * If there is a reference, and
 * it is a TarFileSet, the tar fileset attributes
 * cannot be used.
 */
private void checkTarFileSetAttributesAllowed() {
  if (getProject() == null || (isReference() && (getRefid().getReferencedObject(getProject()) instanceof TarFileSet))) {
    checkAttributesAllowed();
  }
}


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

/**
 * Return a ZipFileSet that has the same properties
 * as this one.
 * @return the cloned zipFileSet
 */
public Object clone() {
  if (isReference()) {
    return ((ZipFileSet) getRef(getProject())).clone();
  }
  else {
    return super.clone();
  }
}

/**
 * A check attributes for zipFileSet.
 * If there is a reference, and
 * it is a ZipFileSet, the zip fileset attributes
 * cannot be used.
 */
private void checkZipFileSetAttributesAllowed() {
  if (getProject() == null || (isReference() && (getRefid().getReferencedObject(getProject()) instanceof ZipFileSet))) {
    checkAttributesAllowed();
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Return a TarFileSet that has the same properties
     * as this one.
     * @return the cloned tarFileSet
     */
/**
     * Return a ZipFileSet that has the same properties
     * as this one.
     * @return the cloned zipFileSet
     */
public Object clone() {
  if (isReference()) {
    return (( [[#variable10137d00]]) getRef(getProject())).clone();
  }
  else {
    return super.clone();
  }
}

/**
     * A check attributes for TarFileSet.
     * If there is a reference, and
     * it is a TarFileSet, the tar fileset attributes
     * cannot be used.
     */
/**
     * A check attributes for zipFileSet.
     * If there is a reference, and
     * it is a ZipFileSet, the zip fileset attributes
     * cannot be used.
     */
private void [[#variable10137c80]]() {
  if (getProject() == null || (isReference() && (getRefid().getReferencedObject(getProject()) instanceof [[#variable10137d00]]))) {
    checkAttributesAllowed();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#10137d00]]
TarFileSet 
12[[#10137d00]]
ZipFileSet 
21[[#10137c80]]
checkTarFileSetAttributesAllowed 
22[[#10137c80]]
checkZipFileSetAttributesAllowed