void setBackups(boolean backups) {
if (backups) {
cmd.createArgument().setValue("-b");
}
}
/**
* flag to ignore whitespace differences; default=false
* @param ignore if true ignore whitespace differences
*/
public void setIgnorewhitespace(boolean ignore) {
if (ignore) {
cmd.createArgument().setValue("-l");
}
void setQuiet(boolean q) {
if (q) {
cmd.createArgument().setValue("-s");
}
}
/**
* Assume patch was created with old and new files swapped; optional,
* default=false
* @param r if true set the -R option on the patch command
*/
public void setReverse(boolean r) {
if (r) {
cmd.createArgument().setValue("-R");
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Patch.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Patch.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void setBackups(boolean backups) {↵ | | 1 | void setQuiet(boolean q) {↵
|
2 | if (backups) {↵ | | 2 | if (q) {↵
|
3 | cmd.createArgument().setValue("-b");↵ | | 3 | cmd.createArgument().setValue("-s");↵
|
4 | }↵ | | 4 | }↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * flag to ignore whitespace differences;↵ | | 7 | * Assume patch was created with old and new files swapped; optional,↵
|
8 | default=false↵ | | 8 | * default=false↵
|
9 | * @param ignore if true ignore whitespace differences↵ | | 9 | * @param r if true set the -R option on the patch command↵
|
10 | */↵ | | 10 | */↵
|
11 | public void setIgnorewhitespace(boolean ignore) {↵ | | 11 | public void setReverse(boolean r) {↵
|
12 | if (ignore) {↵ | | 12 | if (r) {↵
|
13 | cmd.createArgument().setValue("-l");↵ | | 13 | cmd.createArgument().setValue("-R");↵
|
14 | }↵ | | 14 | }↵
|
15 | | | 15 |
|
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 |