File path: /jruby-1.4.0/src/org/jruby/RubyRegexp.java | File path: /jruby-1.4.0/src/org/jruby/RubyRegexp.java | |||
Method name: RubyString regsub19(RubyString, RubyString, Matcher, Regex)
|
Method name: RubyString regsub(RubyString, RubyString, Matcher, Encoding)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (matcher.getBegin() == -1) {↵ | 1 | if (matcher.getBegin() == -1) {↵ | |
2 | no = 0;↵ | 2 | no = 0;↵ | |
3 | continue;↵ | 3 | continue;↵ | |
4 | } | 4 |
| |
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 declared in the same class |
Number of node comparisons | 11 |
Number of mapped statements | 3 |
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.9 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
94 | if (matcher.getBegin() == -1) | 48 | if (matcher.getBegin() == -1) | |||||||
95 | no = 0; | 49 | no = 0; | |||||||
96 | continue; |
| 50 | continue; |
Row | Violation |
---|---|
1 | Statement continue; without innermost loop |
2 | Statement continue; without innermost loop |