File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java | |||
Method name: void isNotProtected(Object, int)
|
Method name: void isPrivate(Object, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | method.getstatic(p(Visibility.class), "PROTECTED", ci(Visibility.class));↵ | 1 | method.getstatic(p(Visibility.class), "PRIVATE", ci(Visibility.class));↵ | |
2 | Label temp = new Label();↵ | 2 | Label temp = new Label();↵ | |
3 | method.if_acmpeq(temp);↵ | 3 | method.if_acmpne(temp);↵ | |
4 | while ((toConsume--) > 0) {↵ | 4 | while ((toConsume--) > 0) {↵ | |
5 | method.pop();↵ | 5 | method.pop();↵ | |
6 | }↵ | 6 | }↵ | |
7 | method.go_to((Label) gotoToken);↵ | 7 | method.go_to((Label) gotoToken);↵ | |
8 | method.label(temp); | 8 |
| |
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 | 21 |
Number of mapped statements | 7 |
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) | 2.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | method.getstatic(p(Visibility.class), "PROTECTED", ci(Visibility.class)); |
| 1 | method.getstatic(p(Visibility.class), "PRIVATE", ci(Visibility.class)); | ||||||||||||||
2 | Label temp = new Label(); | 2 | Label temp = new Label(); | |||||||||||||||
3 | method.if_acmpeq(temp); |
| 3 | method.if_acmpne(temp); | ||||||||||||||
4 | while ((toConsume--) > 0) | 4 | while ((toConsume--) > 0) | |||||||||||||||
5 | method.pop(); | 5 | method.pop(); | |||||||||||||||
6 | method.go_to((Label)gotoToken); | 6 | method.go_to((Label)gotoToken); | |||||||||||||||
7 | method.label(temp); | 7 | method.label(temp); |
Row | Violation |
---|---|
1 | Expression method.if_acmpeq(temp) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression method.if_acmpne(temp) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression method.if_acmpeq(temp) is a void method call, and thus it cannot be parameterized |
4 | Expression method.if_acmpne(temp) is a void method call, and thus it cannot be parameterized |