public void setOptional(boolean optional) {
this.optional = optional;
}
/**
* @return true if the text is optional
*/
public boolean getOptional() {
return optional;
public void setOptional(boolean optional) {
this.optional = optional;
}
/**
* Gets whether this element is optional.
*
* @return the optional attribute
*/
public boolean isOptional() {
return optional;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroDef.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void setOptional(boolean optional) {↵ | | 1 | public void setOptional(boolean optional) {↵
|
2 | this.optional = optional;↵ | | 2 | this.optional = optional;↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * @return true if the text is optional↵ | | 5 | * Gets whether this element is optional.↵
|
| | | 6 | *↵
|
| | | 7 | * @return the optional attribute↵
|
6 | */↵ | | 8 | */↵
|
7 | public boolean getOptional() {↵ | | 9 | public boolean isOptional() {↵
|
8 | return optional; | | 10 | return optional;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |