File path: /jEdit-4.2/src/org/gjt/sp/jedit/browser/VFSFileNameField.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/browser/VFSFileNameField.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void processKeyEvent(KeyEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | delegate.actionPerformed(evt);↵ | 1 | super.processKeyEvent(evt);↵ | |
2 | String path = getText();↵ | 2 | String path = getText();↵ | |
3 | BrowserView view = browser.getBrowserView();↵ | 3 | BrowserView view = browser.getBrowserView();↵ | |
4 | view.selectNone();↵ | 4 | view.selectNone();↵ | |
5 | int mode = browser.getMode();↵ | 5 | int mode = browser.getMode();↵ | |
6 | // fix for bug #765507↵ | 6 | // fix for bug #765507↵ | |
7 | // we don't type complete in save dialog↵ | 7 | // we don't type complete in save dialog↵ | |
8 | // boxes. Press TAB to do an explicit↵ | 8 | // boxes. Press TAB to do an explicit↵ | |
9 | // complete↵ | 9 | // complete↵ | |
10 | view.getTable().doTypeSelect(path,↵ | 10 | view.getTable().doTypeSelect(path,↵ | |
11 | mode == VFSBrowser↵ | 11 | mode == VFSBrowser↵ | |
12 | .CHOOSE_DIRECTORY_DIALOG↵ | 12 | .CHOOSE_DIRECTORY_DIALOG↵ | |
13 | ||↵ | 13 | ||↵ | |
14 | mode == VFSBrowser↵ | 14 | mode == VFSBrowser↵ | |
15 | .SAVE_DIALOG); | 15 |
| |
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 the same java file |
Number of node comparisons | 20 |
Number of mapped statements | 6 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | delegate.actionPerformed(evt); |
| 63 | super.processKeyEvent(evt); | |||||||||||||
4 | String path = getText(); | 64 | String path = getText(); | ||||||||||||||
5 | BrowserView view = browser.getBrowserView(); | 65 | BrowserView view = browser.getBrowserView(); | ||||||||||||||
6 | view.selectNone(); | 66 | view.selectNone(); | ||||||||||||||
7 | int mode = browser.getMode(); | 67 | int mode = browser.getMode(); | ||||||||||||||
8 | view.getTable().doTypeSelect(path, mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG || mode == VFSBrowser.SAVE_DIALOG); | 68 | view.getTable().doTypeSelect(path, mode == VFSBrowser.CHOOSE_DIRECTORY_DIALOG || mode == VFSBrowser.SAVE_DIALOG); |
Row | Violation |
---|---|
1 | Expression delegate.actionPerformed(evt) is a void method call, and thus it cannot be parameterized |
2 | Expression super.processKeyEvent(evt) is a void method call, and thus it cannot be parameterized |
3 | Super method call super.processKeyEvent(evt); cannot be extracted from method |
4 | The refactoring of the clones is infeasible, because classes org.gjt.sp.jedit.browser.VFSFileNameField.BackspaceAction and org.gjt.sp.jedit.browser.VFSFileNameField do not have a common superclass |