if(view.getStatus() != null) { view.getStatus().setMessageAndClear( jEdit.getProperty("view.status.multi-changed", new Integer[] { new Integer(multi ? 1 : 0) })); }
if(view.getStatus() != null) { view.getStatus().setMessageAndClear( jEdit.getProperty("view.status.rect-select-changed", new Integer[] { new Integer(rectangularSelectionMode ? 1 : 0) })); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
Method name: void toggleMultipleSelectionEnabled() Method name: void toggleRectangularSelectionEnabled()
Number of AST nodes: 2 Number of AST nodes: 2
1
if(view.getStatus() != null)
1
if(view.getStatus() != null)
2
		{
2
		{
3
			view.getStatus().setMessageAndClear(
3
			view.getStatus().setMessageAndClear(
4
				jEdit.getProperty("view.status.multi-changed",
4
				jEdit.getProperty("view.status.rect-select-changed",
5
				new Integer[] { new Integer(multi ? 1 : 0) }));
5
				new Integer[] { new Integer(rectangularSelectionMode ? 1 : 0) }));
6
		}
6
		}
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.2
Clones locationClones are declared in the same class
Number of node comparisons4
  1. {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)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    if (view.getStatus() != null)
    2
    if (view.getStatus() != null)
    3
    view.getStatus().setMessageAndClear(jEdit.getProperty("view.status.multi-changed", new Integer[] {new Integer(multi ? 1 : 0)}));
    3
    view.getStatus().setMessageAndClear(jEdit.getProperty("view.status.multi-changed", new Integer[] {new Integer(multi ? 1 : 0)}));
    3
    view.getStatus().setMessageAndClear(jEdit.getProperty("view.status.rect-select-changed", new Integer[] {new Integer(rectangularSelectionMode ? 1 : 0)}));
    Differences
    Expression1Expression2Difference
    "view.status.multi-changed""view.status.rect-select-changed"LITERAL_VALUE_MISMATCH
    multirectangularSelectionModeVARIABLE_NAME_MISMATCH
    3
    view.getStatus().setMessageAndClear(jEdit.getProperty("view.status.rect-select-changed", new Integer[] {new Integer(rectangularSelectionMode ? 1 : 0)}));
    Precondition Violations (0)
    Row Violation