File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaExport.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java | |||
Method name: void main(String[])
|
Method name: void main(String[])
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if ( args[i].startsWith( "--delimiter=" ) ) {↵ | 1 | if ( args[i].startsWith( "--properties=" ) ) {↵ | |
2 | delim = args[i].substring( 12 );↵ | 2 | propFile = args[i].substring( 13 );↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if ( args[i].startsWith( "--config=" ) ) {↵ | 4 | else if ( args[i].startsWith( "--config=" ) ) {↵ | |
5 | cfg.configure( args[i].substring( 9 ) );↵ | 5 | cfg.configure( args[i].substring( 9 ) );↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if ( args[i].startsWith( "--naming=" ) ) {↵ | 7 | else if ( args[i].startsWith( "--naming=" ) ) {↵ | |
8 | cfg.setNamingStrategy(↵ | 8 | cfg.setNamingStrategy(↵ | |
9 | ( NamingStrategy ) ReflectHelper.classForName( args[i].substring( 9 ) )↵ | 9 | ( NamingStrategy ) ReflectHelper.classForName( args[i].substring( 9 ) )↵ | |
10 | .newInstance()↵ | 10 | .newInstance()↵ | |
11 | );↵ | 11 | );↵ | |
12 | } | 12 |
| |
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) | 1.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 29 |
Number of mapped statements | 6 |
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) | 3.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | if (args[i].startsWith("--delimiter=")) |
| 6 | if (args[i].startsWith("--properties=")) | |||||||||||||
34 | delim = args[i].substring(12); |
| 7 | propFile = args[i].substring(13); | |||||||||||||
35 | else if (args[i].startsWith("--config=")) | 8 | else if (args[i].startsWith("--config=")) | ||||||||||||||
36 | cfg.configure(args[i].substring(9)); | 9 | cfg.configure(args[i].substring(9)); | ||||||||||||||
37 | else if (args[i].startsWith("--naming=")) | 10 | else if (args[i].startsWith("--naming=")) | ||||||||||||||
38 | cfg.setNamingStrategy((NamingStrategy)ReflectHelper.classForName(args[i].substring(9)).newInstance()); | 11 | cfg.setNamingStrategy((NamingStrategy)ReflectHelper.classForName(args[i].substring(9)).newInstance()); |
Row | Violation |
---|