File path: /jruby-1.4.0/src/org/jruby/compiler/impl/StandardASMCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/StandardASMCompiler.java | |||
Method name: String getNewConstant(String, String, Object)
|
Method name: String getNewField(String, String, Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if(init != null) {↵ | 1 | if(init != null) {↵ | |
2 | initMethod.aload(THIS);↵ | 2 | initMethod.aload(THIS);↵ | |
3 | initMethod.ldc(init);↵ | 3 | initMethod.ldc(init);↵ | |
4 | initMethod.putfield(getClassname(),realName, type);↵ | 4 | initMethod.putfield(getClassname(),name, type);↵ | |
5 | } | 5 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (init != null) | 3 | if (init != null) | |||||||||||
5 | initMethod.aload(THIS); | 4 | initMethod.aload(THIS); | |||||||||||
6 | initMethod.ldc(init); | 5 | initMethod.ldc(init); | |||||||||||
7 | initMethod.putfield(getClassname(), realName, type); |
| 6 | initMethod.putfield(getClassname(), name, type); |
Row | Violation |
---|