delegate.actionPerformed(evt); String path = getText(); BrowserView view = browser.getBrowserView(); view.selectNone(); int mode = browser.getMode(); // fix for bug #765507 // we don't type complete in save dialog // boxes. Press TAB to do an explicit // complete view.getTable().doTypeSelect(path, mode == VFSBrowser .CHOOSE_DIRECTORY_DIALOG || mode == VFSBrowser .SAVE_DIALOG);
super.processKeyEvent(evt); String path = getText(); BrowserView view = browser.getBrowserView(); view.selectNone(); int mode = browser.getMode(); // fix for bug #765507 // we don't type complete in save dialog // boxes. Press TAB to do an explicit // complete view.getTable().doTypeSelect(path, mode == VFSBrowser .CHOOSE_DIRECTORY_DIALOG || mode == VFSBrowser .SAVE_DIALOG);
Clone fragments detected by clone detection tool
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
					.SAVE_DIALOG);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same java file
Number of node comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    delegate.actionPerformed(evt);
    3
    delegate.actionPerformed(evt);
    63
    super.processKeyEvent(evt);
    Differences
    Expression1Expression2Difference
    delegate.actionPerformed(evt)super.processKeyEvent(evt)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression delegate.actionPerformed(evt) is a void method call, and thus it cannot be parameterized
    Expression super.processKeyEvent(evt) is a void method call, and thus it cannot be parameterized
    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);
    Precondition Violations (2)
    Row Violation
    1Expression delegate.actionPerformed(evt) is a void method call, and thus it cannot be parameterized
    2Expression super.processKeyEvent(evt) is a void method call, and thus it cannot be parameterized