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 |
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 | 4 |
Number of mapped statements | 2 |
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 | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | SwingUtilities.invokeLater(new Runnable() {...}); |
| 1 | SwingUtilities.invokeLater(new Runnable() {...}); | |||||||||||||||||||||||||
8 | return false; | 2 | return false; |
Row | Violation |
---|---|
1 | Expression GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[]{mrjversion}) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression jEdit.exit(jEdit.getActiveView(),true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[]{mrjversion}) is a void method call, and thus it cannot be parameterized |
4 | Expression jEdit.exit(jEdit.getActiveView(),true) is a void method call, and thus it cannot be parameterized |
5 | Type org.gjt.sp.jedit.GUIUtilities does not match with type org.gjt.sp.jedit.jEdit |
6 | Expression GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[]{mrjversion}) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression jEdit.exit(jEdit.getActiveView(),true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression GUIUtilities.error(null,"MacOSPlugin.dialog.mrjversion",new Object[]{mrjversion}) is a void method call, and thus it cannot be parameterized |
9 | Expression jEdit.exit(jEdit.getActiveView(),true) is a void method call, and thus it cannot be parameterized |
10 | The refactoring of the clones is infeasible, because classes macos.MacOSPlugin and macos.Delegate do not have a common superclass |