File path: /jEdit-4.2/src/bsh/SimpleNode.java | File path: /jEdit-4.2/src/org/objectweb/asm/Label.java | |||
Method name: void jjtAddChild(Node, int)
|
Method name: void addReference(int, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | Node c↵ | 1 | if (referenceCount >= srcAndRefPositions.length) {↵ | |
2 | [] = new Node[i + 1];↵ | 2 | int[] a = new int[srcAndRefPositions.length + 6];↵ | |
3 | System.arraycopy(children, 0, c, 0, children.length);↵ | 3 | System.arraycopy(srcAndRefPositions, 0, a, 0, ↵ | |
4 | children = c; | 4 | srcAndRefPositions.length);↵ | |
5 | srcAndRefPositions = a;↵ | |||
6 |
| |||
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | int[] a = new int[srcAndRefPositions.length + 6]; | ||||||||||||||||
4 | Node c[] = new Node[i + 1]; | | ||||||||||||||||
5 | System.arraycopy(children, 0, c, 0, children.length); |
| 5 | System.arraycopy(srcAndRefPositions, 0, a, 0, srcAndRefPositions.length); | ||||||||||||||
| 6 | srcAndRefPositions = a; | ||||||||||||||||
6 | children = c; | |
Row | Violation |
---|---|
1 | Type bsh.Node[] of variable children does not match with type int[] of variable srcAndRefPositions |