extraEndVirt = (int)(
(x - dragStartLineWidth)
/ charWidth);
if(!getPainter().isBlockCaretEnabled()
&& !isOverwriteEnabled()
&& (x - getHorizontalOffset()) % charWidth > charWidth / 2)
{
extraEndVirt++;
}
extraEndVirt = (int)((x - dotLineWidth) / charWidth);
if(!getPainter().isBlockCaretEnabled()
&& !isOverwriteEnabled()
&& (x - getHorizontalOffset()) % charWidth > charWidth / 2)
extraEndVirt++;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | extraEndVirt = (int)(↵ | | 1 | extraEndVirt = (int)(↵
|
2 | (x - dragStartLineWidth)↵ | | 2 | (x - dotLineWidth)↵
|
3 | / charWidth);↵ | | 3 | / charWidth);↵
|
4 | if(!getPainter().isBlockCaretEnabled()↵ | | 4 | if(!getPainter().isBlockCaretEnabled()↵
|
5 | && !isOverwriteEnabled()↵ | | 5 | && !isOverwriteEnabled()↵
|
6 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵ | | 6 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵
|
7 | {↵ | | 7 | ↵
|
8 | extraEndVirt++;↵ | | 8 | extraEndVirt++;↵
|
9 | } | | 9 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |