beforeCaret.setText(null);
afterCaret.setText(null);
return;
PanelWindowContainer container =
((PanelWindowContainer.DockablePanel)
comp).getWindowContainer();
container.show(null);
return;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/AbbrevEditor.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java
|
Method name: void setExpansion(String)
|
|
Method name: void run()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | beforeCaret.setText(nul↵ | | 1 | PanelWindowContainer container =↵
|
2 | l);↵ | | 2 | ((PanelWindowContainer.DockablePanel)↵
|
3 | afterCaret.setText↵ | | 3 | comp).getWindowContainer();↵
|
4 | (null);↵ | | 4 | container.show(null);↵
|
5 | return; | | 5 | return;
|
See real code fragment |
|
See real code fragment |
Summary
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 different classes |
Number of node comparisons | 9 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | beforeCaret.setText(null); | | | |
3 | afterCaret.setText(null); | | | |
| | | 4 | PanelWindowContainer container = ((PanelWindowContainer.DockablePanel)comp).getWindowContainer(); |
| | | 5 | container.show(null); |
4 | return; | | 6 | return; |
Precondition Violations (2)
Row |
Violation |
1 | Conditional return; |
2 | Conditional return; |