File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/LineManager.java | File path: /jEdit-4.2/src/org/objectweb/asm/Label.java | |||
Method name: void contentInserted(int, int, int, int, IntegerArray)
|
Method name: void addReference(int, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | int[] lineInfoN = new int[(lineCount + 1) * 2];↵ | 1 | i↵ | |
2 | System.arraycopy(lineInfo,0,lineInfoN,0,↵ | |||
3 | lineInfo.length);↵ | |||
4 | lineInfo = lineInfoN; | 2 | f (referenceCount >= srcAndRefPositions.length) {↵ | |
3 | int[] a = new int[srcAndRefPositions.length + 6];↵ | |||
4 | System.arraycopy(srcAndRefPositions, 0, a, 0, 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 | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | int[] a = new int[srcAndRefPositions.length + 6]; | ||||||||||||||||||
10 | int[] lineInfoN = new int[(lineCount + 1) * 2]; | | ||||||||||||||||||
11 | System.arraycopy(lineInfo, 0, lineInfoN, 0, lineInfo.length); |
| 5 | System.arraycopy(srcAndRefPositions, 0, a, 0, srcAndRefPositions.length); | ||||||||||||||||
12 | lineInfo = lineInfoN; |
| 6 | srcAndRefPositions = a; |
Row | Violation |
---|---|
1 | Expression lineInfo is a field being modified, and thus it cannot be parameterized |
2 | Expression srcAndRefPositions is a field being modified, and thus it cannot be parameterized |