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/core/src/main/java/org/hibernate/bytecode/util/BasicClassFilter.java | |||
Method name: boolean isNotFound(String)
|
Method name: boolean isInIncludedPackage(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (notFoundClasses != null)↵ | 1 | if ( includedPackages != null↵ | |
2 | {↵ | |||
3 | ↵ | 2 | ) {↵ | |
4 | for (int i = 0; i < notFoundClasses.length; i++)↵ | 3 | for ( int i = 0; i < includedPackages.length; i++↵ | |
5 | {↵ | |||
6 | ↵ | 4 | ) {↵ | |
7 | if (className.startsWith(notFoundClasses[i]))↵ | 5 | if ( className.startsWith(↵ | |
8 | {↵ | |||
9 | return true;↵ | |||
10 | }↵ | |||
11 | }↵ | |||
12 | }↵ | |||
13 | ↵ | 6 | includedPackages[i] ) ) {↵ | |
7 | return true;↵ | |||
8 | }↵ | |||
9 | }↵ | |||
10 | }↵ | |||
14 | return false; | 11 | return false; | |
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 in different classes |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (notFoundClasses != null) |
| 1 | if (includedPackages != null) | ||||||||||
2 | for (int i = 0; i < notFoundClasses.length; i++) |
| 2 | for (int i = 0; i < includedPackages.length; i++) | ||||||||||
3 | if (className.startsWith(notFoundClasses[i])) |
| 3 | if (className.startsWith(includedPackages[i])) | ||||||||||
4 | return true; | 4 | return true; | |||||||||||
5 | return false; | 5 | return false; |
Row | Violation |
---|