if(config.top != null && config.top.length() != 0) wm.showDockableWindow(config.top); if(config.left != null && config.left.length() != 0) wm.showDockableWindow(config.left); if(config.bottom != null && config.bottom.length() != 0) wm.showDockableWindow(config.bottom);
if(config.left != null && config.left.length() != 0) wm.showDockableWindow(config.left); if(config.bottom != null && config.bottom.length() != 0) wm.showDockableWindow(config.bottom); if(config.right != null && config.right.length() != 0) wm.showDockableWindow(config.right);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
Method name: View newView(View, Buffer, View.ViewConfig) Method name: View newView(View, Buffer, View.ViewConfig)
Number of AST nodes: 6 Number of AST nodes: 6
1
if(config.top != null
2
					&& config.top.length() != 0)
3
					wm.showDockableWindow(config.top);
4
				if(config.left != null
1
if(config.left != null
5
					&& config.left.length() != 0)
2
					&& config.left.length() != 0)
6
					wm.showDockableWindow(config.left);
3
					wm.showDockableWindow(config.left);
7
				if(config.bottom != null
4
				if(config.bottom != null
8
					&& config.bottom.length() != 0)
5
					&& config.bottom.length() != 0)
9
					wm.showDockableWindow(config.bottom);
6
					wm.showDockableWindow(config.bottom);
7
				if(config.right != null
8
					&& config.right.length() != 0)
9
					wm.showDockableWindow(config.right);
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)2.3
Clones locationClones are in the same method
Number of node comparisons28
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)2.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    if (config.top != null && config.top.length() != 0)
    10
    if (config.top != null && config.top.length() != 0)
    12
    if (config.left != null && config.left.length() != 0)
    Differences
    Expression1Expression2Difference
    topleftVARIABLE_NAME_MISMATCH
    topleftVARIABLE_NAME_MISMATCH
    12
    if (config.left != null && config.left.length() != 0)
    11
    wm.showDockableWindow(config.top);
    11
    wm.showDockableWindow(config.top);
    13
    wm.showDockableWindow(config.left);
    Differences
    Expression1Expression2Difference
    topleftVARIABLE_NAME_MISMATCH
    13
    wm.showDockableWindow(config.left);
    12
    if (config.left != null && config.left.length() != 0)
    12
    if (config.left != null && config.left.length() != 0)
    14
    if (config.bottom != null && config.bottom.length() != 0)
    Differences
    Expression1Expression2Difference
    leftbottomVARIABLE_NAME_MISMATCH
    leftbottomVARIABLE_NAME_MISMATCH
    14
    if (config.bottom != null && config.bottom.length() != 0)
    13
    wm.showDockableWindow(config.left);
    13
    wm.showDockableWindow(config.left);
    15
    wm.showDockableWindow(config.bottom);
    Differences
    Expression1Expression2Difference
    leftbottomVARIABLE_NAME_MISMATCH
    15
    wm.showDockableWindow(config.bottom);
    14
    if (config.bottom != null && config.bottom.length() != 0)
    14
    if (config.bottom != null && config.bottom.length() != 0)
    16
    if (config.right != null && config.right.length() != 0)
    Differences
    Expression1Expression2Difference
    bottomrightVARIABLE_NAME_MISMATCH
    bottomrightVARIABLE_NAME_MISMATCH
    16
    if (config.right != null && config.right.length() != 0)
    15
    wm.showDockableWindow(config.bottom);
    15
    wm.showDockableWindow(config.bottom);
    17
    wm.showDockableWindow(config.right);
    Differences
    Expression1Expression2Difference
    bottomrightVARIABLE_NAME_MISMATCH
    17
    wm.showDockableWindow(config.right);
    Precondition Violations (0)
    Row Violation