if (whitespace == null) { whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")); //$NON-NLS-1$ } return whitespace;
if (namespace == null) { namespace = new JCheckBox(JMeterUtils.getResString("xml_namespace_button")); //$NON-NLS-1$ } return namespace;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XMLConfPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XMLConfPanel.java
Method name: JCheckBox getWhitespace() Method name: JCheckBox getNamespace()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (whitespace == null) {
1
if (namespace == null) {
2
			whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button")); //$NON-NLS-1$
2
			namespace = new JCheckBox(JMeterUtils.getResString("xml_namespace_button")); //$NON-NLS-1$
3
		}
3
		}
4
		return whitespace;
4
		return namespace;
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 declared in the same class
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (whitespace == null)
    1
    if (whitespace == null)
    1
    if (namespace == null)
    Differences
    Expression1Expression2Difference
    whitespacenamespaceVARIABLE_NAME_MISMATCH
    1
    if (namespace == null)
    2
    whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button"));
    2
    whitespace = new JCheckBox(JMeterUtils.getResString("xml_whitespace_button"));
    2
    namespace = new JCheckBox(JMeterUtils.getResString("xml_namespace_button"));
    Differences
    Expression1Expression2Difference
    whitespacenamespaceVARIABLE_NAME_MISMATCH
    "xml_whitespace_button""xml_namespace_button"LITERAL_VALUE_MISMATCH
    2
    namespace = new JCheckBox(JMeterUtils.getResString("xml_namespace_button"));
    3
    return whitespace;
    3
    return whitespace;
    3
    return namespace;
    Differences
    Expression1Expression2Difference
    whitespacenamespaceVARIABLE_NAME_MISMATCH
    3
    return namespace;
    Precondition Violations (0)
    Row Violation