Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 1 | 0.967 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 184 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Jar.java |
2 | 2 | 305 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Zip.java |
| |||||
/** * Indicates if a jar file should be created when it would only contain a * manifest file. * Possible values are: <code>fail</code> (throw an exception * and halt the build); <code>skip</code> (do not create * any archive, but issue a warning); <code>create</code> * (make an archive with only a manifest file). * Default is <code>create</code>; * @param we a <code>WhenEmpty</code> enumerated value */ public void setWhenmanifestonly(WhenEmpty we) { emptyBehavior = we.getValue(); } |
| |||||
/** * Sets behavior of the task when no files match. * Possible values are: <code>fail</code> (throw an exception * and halt the build); <code>skip</code> (do not create * any archive, but issue a warning); <code>create</code> * (make an archive with no entries). * Default for zip tasks is <code>skip</code>; * for jar tasks, <code>create</code>. * @param we a <code>WhenEmpty</code> enumerated value */ public void setWhenempty(WhenEmpty we) { emptyBehavior = we.getValue(); } |
| |||
/** * Indicates if a jar file should be created when it would only contain a * manifest file. * Possible values are: <code>fail</code> (throw an exception * and halt the build); <code>skip</code> (do not create * any archive, but issue a warning); <code>create</code> * (make an archive with only a manifest file). * Default is <code>create</code>; * @param we a <code>WhenEmpty</code> enumerated value */ /** * Sets behavior of the task when no files match. * Possible values are: <code>fail</code> (throw an exception * and halt the build); <code>skip</code> (do not create * any archive, but issue a warning); <code>create</code> * (make an archive with no entries). * Default for zip tasks is <code>skip</code>; * for jar tasks, <code>create</code>. * @param we a <code>WhenEmpty</code> enumerated value */ public void [[#variable112b2320]](WhenEmpty we) { emptyBehavior = we.getValue(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#112b2320]] | setWhenmanifestonly |
1 | 2 | [[#112b2320]] | setWhenempty |