int start;
JEditTextArea textArea = view.getTextArea();
Selection s = textArea.getSelectionAtOffset(
textArea.getCaretPosition());
if(s == null)
start = textArea.getCaretPosition();
else
start = s.getStart();
timerIncrementalSearch(start,false);
int start;
JEditTextArea textArea = view.getTextArea();
Selection s = textArea.getSelectionAtOffset(
textArea.getCaretPosition());
if(s == null)
start = textArea.getCaretPosition();
else
start = s.getStart();
timerIncrementalSearch(start,true);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/search/SearchBar.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/search/SearchBar.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | int start;↵ | | 1 | int start;↵
|
2 | JEditTextArea textArea = view.getTextArea();↵ | | 2 | JEditTextArea textArea = view.getTextArea();↵
|
3 | Selection s = textArea.getSelectionAtOffset(↵ | | 3 | Selection s = textArea.getSelectionAtOffset(↵
|
4 | textArea.getCaretPosition());↵ | | 4 | textArea.getCaretPosition());↵
|
5 | if(s == null)↵ | | 5 | if(s == null)↵
|
6 | start = textArea.getCaretPosition();↵ | | 6 | start = textArea.getCaretPosition();↵
|
7 | else↵ | | 7 | else↵
|
8 | start = s.getStart();↵ | | 8 | start = s.getStart();↵
|
|
9 | timerIncrementalSearch(start,false);↵ | | 9 | timerIncrementalSearch(start,true);↵
|
10 | | | 10 |
|
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 |