SwingUtilities.invokeLater( new Runnable() { public void run() {
GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[] {mrjversion});
}});
return false;
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
jEdit.exit(jEdit.getActiveView(),true);
}
});
return false;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/jars/MacOS/macos/MacOSPlugin.java
|
|
File path: /jEdit-4.2/jars/MacOS/macos/Delegate.java
|
Method name: boolean osok()
|
|
Method name: boolean applicationShouldTerminate(NSApplication)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | SwingUtilities.invokeLater( new Runnable() { ↵ | | 1 | SwingUtilities.invokeLater(new Runnable()↵
|
| | | 2 | {↵
|
2 | public void run() ↵ | | 3 | public void run()↵
|
3 | {↵ | | 4 | {↵
|
4 | GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[] {mrjversion});↵ | | 5 | jEdit.exit(jEdit.getActiveView(),true);↵
|
5 | }↵ | | 6 | }↵
|
6 | });↵ | | 7 | });↵
|
7 | return false; | | 8 | return false;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 1 | SwingUtilities.invokeLater(new Runnable() {...}); |
7 | SwingUtilities.invokeLater(new Runnable() {...}); | | | |
8 | return false; | | 2 | return false; |
Precondition Violations (0)
Row |
Violation |