public synchronized void appendIncludes(String[] includes) {
checkAttributesAllowed();
if (includes != null) {
for (int i = 0; i < includes.length; i++) {
defaultPatterns.createInclude().setName(includes[i]);
}
ds = null;
public synchronized void appendExcludes(String[] excludes) {
checkAttributesAllowed();
if (excludes != null) {
for (int i = 0; i < excludes.length; i++) {
defaultPatterns.createExclude().setName(excludes[i]);
}
ds = null;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Files.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/Files.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public synchronized void appendIncludes(String[] includes) {↵ | | 1 | public synchronized void appendExcludes(String[] excludes) {↵
|
2 | checkAttributesAllowed();↵ | | 2 | checkAttributesAllowed();↵
|
3 | if (includes != null) {↵ | | 3 | if (excludes != null) {↵
|
4 | for (int i = 0; i < includes.length; i++) {↵ | | 4 | for (int i = 0; i < excludes.length; i++) {↵
|
5 | defaultPatterns.createInclude().setName(includes[i]);↵ | | 5 | defaultPatterns.createExclude().setName(excludes[i]);↵
|
6 | }↵ | | 6 | }↵
|
7 | ds = null;↵ | | 7 | ds = null;↵
|
8 | | | 8 |
|
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 |