File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/util/SelectedClassnameClassLoader.java | File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/test/java/org/hibernate/test/util/SelectedClassnameClassLoader.java | |||
Method name: boolean isNotFound(String)
|
Method name: boolean isExcluded(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (notFoundClasses != null)↵ | 1 | if (excludedClasses != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | for (int i = 0; i < notFoundClasses.length; i++)↵ | 3 | for (int i = 0; i < excludedClasses.length; i++)↵ | |
4 | {↵ | 4 | {↵ | |
5 | if (className.startsWith(notFoundClasses[i]))↵ | 5 | if (className.startsWith(excludedClasses[i]))↵ | |
6 | {↵ | 6 | {↵ | |
7 | return true;↵ | 7 | return true;↵ | |
8 | }↵ | 8 | }↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | return false; | 11 |
| |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (notFoundClasses != null) |
| 1 | if (excludedClasses != null) | ||||||||||
2 | for (int i = 0; i < notFoundClasses.length; i++) |
| 2 | for (int i = 0; i < excludedClasses.length; i++) | ||||||||||
3 | if (className.startsWith(notFoundClasses[i])) |
| 3 | if (className.startsWith(excludedClasses[i])) | ||||||||||
4 | return true; | 4 | return true; | |||||||||||
5 | return false; | 5 | return false; |
Row | Violation |
---|