File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/buildtime/AbstractInstrumenter.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/bytecode/buildtime/AbstractInstrumenter.java | |||
Method name: void execute(Set)
|
Method name: void execute(Set)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | try {↵ | 1 | try {↵ | |
2 | Iterator itr = files.iterator();↵ | 2 | Iterator itr = files.iterator();↵ | |
3 | while ( itr.hasNext() ) {↵ | 3 | while ( itr.hasNext() ) {↵ | |
4 | final File file = ( File ) itr.next();↵ | 4 | final File file = ( File ) itr.next();↵ | |
5 | collectClassNames( file, classNames );↵ | 5 | processFile( file, classNames );↵ | |
6 | }↵ | 6 | }↵ | |
7 | }↵ | 7 | }↵ | |
8 | catch ( ExecutionException ee ) {↵ | 8 | catch ( ExecutionException ee ) {↵ | |
9 | throw ee;↵ | 9 | throw ee;↵ | |
10 | }↵ | 10 | }↵ | |
11 | catch ( Exception e ) {↵ | 11 | catch ( Exception e ) {↵ | |
12 | throw new ExecutionException( e );↵ | 12 | throw new ExecutionException( e );↵ | |
13 | } | 13 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | try | 10 | try | |||||||||||||||
5 | Iterator itr = files.iterator(); | 11 | Iterator itr = files.iterator(); | |||||||||||||||
6 | while (itr.hasNext()) | 12 | while (itr.hasNext()) | |||||||||||||||
7 | final File file = (File)itr.next(); | 13 | final File file = (File)itr.next(); | |||||||||||||||
8 | collectClassNames(file, classNames); |
| 14 | processFile(file, classNames); |
Row | Violation |
---|---|
1 | Expression collectClassNames(file,classNames) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression processFile(file,classNames) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression collectClassNames(file,classNames) is a void method call, and thus it cannot be parameterized |
4 | Expression processFile(file,classNames) is a void method call, and thus it cannot be parameterized |