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