File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java | File path: /jEdit-4.2/src/org/objectweb/asm/Label.java | |||
Method name: void visitLabel(Label)
|
Method name: void put(CodeWriter, ByteVector, int, boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (CHECK) {↵ | 1 | if (CodeWriter.CHECK) {↵ | |
2 | if (label.owner == null) {↵ | 2 | if (this.owner == null) {↵ | |
3 | label.owner = this;↵ | 3 | this.owner = owner;↵ | |
4 | } else if (label.owner != this) {↵ | 4 | } else if (this.owner != owner) {↵ | |
5 | throw new IllegalArgumentException();↵ | 5 | throw new IllegalArgumentException();↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (CHECK) |
| 1 | if (CodeWriter.CHECK) | ||||||||||||||
2 | if (label.owner == null) |
| 2 | if (this.owner == null) | ||||||||||||||
3 | label.owner = this; |
| 3 | this.owner = owner; | ||||||||||||||
4 | else if (label.owner != this) |
| 4 | else if (this.owner != owner) | ||||||||||||||
5 | throw new IllegalArgumentException(); | 5 | throw new IllegalArgumentException(); |
Row | Violation |
---|---|
1 | Expression this.owner is a field being modified, and thus it cannot be parameterized |