if(msgSet) { GUIUtilities.getView((Component)evt.getSource()) .getStatus().setMessage(null); msgSet = false; }
if(background) { background = false; Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/EnhancedMenuItem.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
Method name: void mouseExited(MouseEvent) Method name: void main(String[])
Number of AST nodes: 3 Number of AST nodes: 3
1
if(msgSet)
1
if(background)
2
			{
2
			{
3
				GUIUtilities.getView((Component)evt.getSource())
3
				
4
					.getStatus().setMessage(null);
5
				msgSet = false
4
background = false;
5
				Log.log(Log.WARNING,jEdit.class,"You cannot specify both the"
6
;
6
					+ " -background and -noserver switches");
7
			}
7
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)28.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (msgSet)
    1
    if (msgSet)
    161
    if (background)
    Differences
    Expression1Expression2Difference
    msgSetbackgroundVARIABLE_NAME_MISMATCH
    161
    if (background)
    2
    GUIUtilities.getView((Component)evt.getSource()).getStatus().setMessage(null);
                                                                                                                                                                      
    3
    msgSet = false;
    3
    msgSet = false;
    162
    background = false;
    Differences
    Expression1Expression2Difference
    msgSetbackgroundVARIABLE_NAME_MISMATCH
    162
    background = false;
                                                                                                                                                                                                                            
    163
    Log.log(Log.WARNING, jEdit.class, "You cannot specify both the" + " -background and -noserver switches");
    Preondition Violations
    Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted
    163
    Log.log(Log.WARNING, jEdit.class, "You cannot specify both the" + " -background and -noserver switches");
    Precondition Violations (2)
    Row Violation
    1Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement Log.log(Log.WARNING,jEdit.class,"You cannot specify both the" + " -background and -noserver switches"); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted