private String getFileString(String filename)
throws IOException
{
Reader r = null;
try {
r = new FileReader(FILE_UTILS.resolveFile(getProject().getBaseDir(), filename));
return FileUtils.readFully(r);
}
finally {
FileUtils.close(r);
private String getFileString(String filename)
throws IOException
{
Reader r = null;
try {
r = new FileReader(FILE_UTILS.resolveFile(getProject().getBaseDir(),filename));
return FileUtils.readFully(r);
}
finally {
FileUtils.close(r);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/DynamicFilterTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/TokenFilterTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private String getFileString(String filename)↵ | | 1 | private String getFileString(String filename)↵
|
2 | throws IOException↵ | | 2 | throws IOException↵
|
3 | {↵ | | 3 | {↵
|
4 | Reader r = null;↵ | | 4 | Reader r = null;↵
|
5 | try {↵ | | 5 | try {↵
|
6 | r = new FileReader(FILE_UTILS.resolveFile(getProject().getBaseDir(), filename));↵ | | 6 | r = new FileReader(FILE_UTILS.resolveFile(getProject().getBaseDir(),filename));↵
|
7 | return FileUtils.readFully(r);↵ | | 7 | return FileUtils.readFully(r);↵
|
8 | }↵ | | 8 | }↵
|
9 | finally {↵ | | 9 | finally {↵
|
10 | FileUtils.close(r);↵ | | 10 | FileUtils.close(r);↵
|
11 | | | 11 |
|
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 |