element.setProperty(new StringProperty(LDAPSampler.TEST, LDAPSampler.SEARCHBASE)); element.setProperty(new StringProperty(LDAPSampler.SEARCHBASE, searchbase.getText())); element.setProperty(new StringProperty(LDAPSampler.SEARCHFILTER, searchfilter.getText()));
element.setProperty(new StringProperty(LDAPExtSampler.TEST, LDAPExtSampler.SEARCH)); element.setProperty(new StringProperty(LDAPExtSampler.SEARCHBASE, searchbase.getText())); element.setProperty(new StringProperty(LDAPExtSampler.SEARCHFILTER, searchfilter.getText()));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java
Method name: void modifyTestElement(TestElement) Method name: void modifyTestElement(TestElement)
Number of AST nodes: 3 Number of AST nodes: 3
1
element.setProperty(new StringProperty(LDAPSampler.TEST, LDAPSampler.SEARCHBASE));
1
element.setProperty(new StringProperty(LDAPExtSampler.TEST, LDAPExtSampler.SEARCH));
2
			element.setProperty(new StringProperty(LDAPSampler.SEARCHBASE, searchbase.getText()));
2
			element.setProperty(new StringProperty(LDAPExtSampler.SEARCHBASE, searchbase.getText()));
3
			element.setProperty(new StringProperty(LDAPSampler.SEARCHFILTER, searchfilter.getText()));
3
			element.setProperty(new StringProperty(LDAPExtSampler.SEARCHFILTER, searchfilter.getText()));
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  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)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    19
    element.setProperty(new StringProperty(LDAPSampler.TEST, LDAPSampler.SEARCHBASE));
    19
    element.setProperty(new StringProperty(LDAPSampler.TEST, LDAPSampler.SEARCHBASE));
    33
    element.setProperty(new StringProperty(LDAPExtSampler.TEST, LDAPExtSampler.SEARCH));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.ldap.sampler.LDAPSamplerorg.apache.jmeter.protocol.ldap.sampler.LDAPExtSamplerSUBCLASS_TYPE_MISMATCH
    org.apache.jmeter.protocol.ldap.sampler.LDAPSamplerorg.apache.jmeter.protocol.ldap.sampler.LDAPExtSamplerSUBCLASS_TYPE_MISMATCH
    SEARCHBASESEARCHVARIABLE_NAME_MISMATCH
    33
    element.setProperty(new StringProperty(LDAPExtSampler.TEST, LDAPExtSampler.SEARCH));
    20
    element.setProperty(new StringProperty(LDAPSampler.SEARCHBASE, searchbase.getText()));
    20
    element.setProperty(new StringProperty(LDAPSampler.SEARCHBASE, searchbase.getText()));
    34
    element.setProperty(new StringProperty(LDAPExtSampler.SEARCHBASE, searchbase.getText()));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.ldap.sampler.LDAPSamplerorg.apache.jmeter.protocol.ldap.sampler.LDAPExtSamplerSUBCLASS_TYPE_MISMATCH
    34
    element.setProperty(new StringProperty(LDAPExtSampler.SEARCHBASE, searchbase.getText()));
    21
    element.setProperty(new StringProperty(LDAPSampler.SEARCHFILTER, searchfilter.getText()));
    21
    element.setProperty(new StringProperty(LDAPSampler.SEARCHFILTER, searchfilter.getText()));
    35
    element.setProperty(new StringProperty(LDAPExtSampler.SEARCHFILTER, searchfilter.getText()));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.ldap.sampler.LDAPSamplerorg.apache.jmeter.protocol.ldap.sampler.LDAPExtSamplerSUBCLASS_TYPE_MISMATCH
    35
    element.setProperty(new StringProperty(LDAPExtSampler.SEARCHFILTER, searchfilter.getText()));
    Precondition Violations (0)
    Row Violation