Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 2 | 0.970 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 244 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/TarFileSet.java |
2 | 21 | 123 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ZipFileSet.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(); } } |
| |||||
/** * 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(); } } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#10137d00]] | TarFileSet |
1 | 2 | [[#10137d00]] | ZipFileSet |
2 | 1 | [[#10137c80]] | checkTarFileSetAttributesAllowed |
2 | 2 | [[#10137c80]] | checkZipFileSetAttributesAllowed |