File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/LineManager.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/LineManager.java | |||
Method name: void moveGap(int, int, String)
|
Method name: void moveGap(int, int, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if(gapWidth != 0)↵ | 1 | if(gapWidth != 0)↵ | |
2 | {↵ | 2 | {↵ | |
3 | if(Debug.OFFSET_DEBUG && gapLine != lineCount)↵ | 3 | if(Debug.OFFSET_DEBUG && gapLine != newGapLine)↵ | |
4 | Log.log(Log.DEBUG,this,method + ": update from " + gapLine + " to " + lineCount + " width " + gapWidth);↵ | 4 | Log.log(Log.DEBUG,this,method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth);↵ | |
5 | for(int i = gapLine; i < lineCount; i++)↵ | 5 | for(int i = gapLine; i < newGapLine; i++)↵ | |
6 | setLineEndOffset(i,getLineEndOffset(i));↵ | 6 | setLineEndOffset(i,getLineEndOffset(i));↵ | |
7 | } | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in the same method |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (gapWidth != 0) | 17 | if (gapWidth != 0) | |||||||||||
5 | if (Debug.OFFSET_DEBUG && gapLine != lineCount) |
| 18 | if (Debug.OFFSET_DEBUG && gapLine != newGapLine) | ||||||||||
6 | Log.log(Log.DEBUG, this, method + ": update from " + gapLine + " to " + lineCount + " width " + gapWidth); |
| 19 | Log.log(Log.DEBUG, this, method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth); | ||||||||||
7 | for (int i = gapLine; i < lineCount; i++) |
| 20 | for (int i = gapLine; i < newGapLine; i++) | ||||||||||
8 | setLineEndOffset(i, getLineEndOffset(i)); | 21 | setLineEndOffset(i, getLineEndOffset(i)); |
Row | Violation |
---|