log.debug("Firing sample"); listener.processBatch(sampleStore); sampleStore.clear();
super.clearGui(); urlConfig.clear(); imageParser.setSelected(false);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/BatchSampleSender.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/config/gui/HttpDefaultsGui.java
Method name: void SampleOccurred(SampleEvent) Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 3
1
log.debug("Firing sample");
2
						listener.processBatch(sampleStore);
3
						sampleStore.clear(
1
super.clearGui();
2
        urlConfig.clear();
4
);
3
        imageParser.setSelected(false);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-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)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    6
    log.debug("Firing sample");
    6
    log.debug("Firing sample");
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    log.debug("Firing sample")super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression log.debug("Firing sample") is a void method call, and thus it cannot be parameterized
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    1
    super.clearGui();
    8
    sampleStore.clear();
    8
    sampleStore.clear();
    2
    urlConfig.clear();
    Differences
    Expression1Expression2Difference
    sampleStoreurlConfigVARIABLE_NAME_MISMATCH
    java.util.Listorg.apache.jmeter.protocol.http.config.gui.UrlConfigGuiVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.util.List of variable sampleStore does not match with type org.apache.jmeter.protocol.http.config.gui.UrlConfigGui of variable urlConfig
    • Make classes java.util.List and org.apache.jmeter.protocol.http.config.gui.UrlConfigGui extend a common superclass
    2
    urlConfig.clear();
                                                                        
    3
    imageParser.setSelected(false);
    Precondition Violations (3)
    Row Violation
    1Expression log.debug("Firing sample") is a void method call, and thus it cannot be parameterized
    2Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    3Type java.util.List of variable sampleStore does not match with type org.apache.jmeter.protocol.http.config.gui.UrlConfigGui of variable urlConfig