File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/AntClassLoaderTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/AntClassLoaderTest.java | |||
Method name: void testCleanup()
|
Method name: void testCleanup()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | try {↵ | 1 | try {↵ | |
2 | // we don't expect to find this↵ | 2 | // we don't expect to find this↵ | |
3 | loader.findClass("fubar");↵ | 3 | loader.findClass("fubar");↵ | |
4 | fail("Did not expect to find fubar class");↵ | 4 | fail("Did not expect to find fubar class");↵ | |
5 | } catch (ClassNotFoundException e) {↵ | 5 | } catch (ClassNotFoundException e) {↵ | |
6 | // ignore expected↵ | 6 | // ignore expected↵ | |
7 | } catch (NullPointerException e) {↵ | 7 | } catch (NullPointerException e) {↵ | |
8 | fail("loader should not fail even if cleaned up");↵ | 8 | fail("loader should not fail even if ↵ | |
9 | }↵ | |||
10 | // tell the build it is finished↵ | 9 | project finished");↵ | |
11 | p.fireBuildFinished(null); | 10 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | try |
| 11 | try | ||||||||||
8 | loader.findClass("fubar"); | 12 | loader.findClass("fubar"); | |||||||||||
9 | fail("Did not expect to find fubar class"); | 13 | fail("Did not expect to find fubar class"); | |||||||||||
10 | p.fireBuildFinished(null); | |
Row | Violation |
---|