Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 1 | 0.965 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 1879 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java |
2 | 9 | 2010 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java |
| |||||
// save caret info. Buffer.load() will load it. View _view = viewsFirst; while (_view != null) { EditPane[] panes = _view.getEditPanes(); for (int i = 0; i < panes.length; i++) { panes[i].saveCaretInfo(); } _view = _view.next; } |
| |||||
// the problem with this is that if we have two edit panes // looking at the same buffer and the file is reloaded both // will jump to the same location View _view = viewsFirst; while (_view != null) { EditPane[] editPanes = _view.getEditPanes(); for (int i = 0; i < editPanes.length; i++) { editPanes[i].saveCaretInfo(); } _view = _view.next; } |
| |||
// save caret info. Buffer.load() will load it. // the problem with this is that if we have two edit panes // looking at the same buffer and the file is reloaded both // will jump to the same location View _view = viewsFirst; while (_view != null) { EditPane[] [[#variableaee7e20]]= _view.getEditPanes(); for (int i = 0; i < [[#variableaee7e20]].length; i++) { [[#variableaee7e20]][i].saveCaretInfo(); } _view = _view.next; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#aee7e20]] | panes |
1 | 2 | [[#aee7e20]] | editPanes |