Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.962 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 618 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Java.java |
2 | 5 | 596 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java |
| |||||
/** * Add assertions to enable in this program (if fork=true). * @param asserts assertion set. * @since Ant 1.6 */ public void addAssertions(Assertions asserts) { if (getCommandLine().getAssertions() != null) { throw new BuildException("Only one assertion declaration is allowed"); } getCommandLine().setAssertions(asserts); } |
| |||||
/** * Assertions to enable in this program (if fork=true) * @since Ant 1.6 * @param asserts assertion set */ public void addAssertions(Assertions asserts) { if (getCommandline().getAssertions() != null) { throw new BuildException("Only one assertion declaration is allowed"); } getCommandline().setAssertions(asserts); } |
| |||
/** * Add assertions to enable in this program (if fork=true). * @param asserts assertion set. * @since Ant 1.6 */ /** * Assertions to enable in this program (if fork=true) * @since Ant 1.6 * @param asserts assertion set */ public void addAssertions(Assertions asserts) { if ( [[#variable1307a2e0]]().getAssertions() != null) { throw new BuildException("Only one assertion declaration is allowed"); } [[#variable1307a2e0]]().setAssertions(asserts); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1307a2e0]] | getCommandLine |
1 | 2 | [[#1307a2e0]] | getCommandline |