this.setHealth(health); this.setLoad(load); this.setCpuLoad(cpuload); this.setMemLoad(memload); this.setThreadLoad(threadload); this.setHost(host); this.setPort(port); this.setProtocol(protocol); this.setTimeStamp(time);
this.setName(name); this.setValue(value); this.setDomain(domain); this.setPath(path); this.setSecure(secure); this.setExpires(expires); this.setPathSpecified(hasPath); this.setDomainSpecified(hasDomain);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorStats.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Cookie.java
Method name: void MonitorStats(int, int, int, int, int, String, String, String, long) Method name: void Cookie(String, String, String, String, boolean, long, boolean, boolean)
Number of AST nodes: 9 Number of AST nodes: 8
1
this.setHealth(health);
1
this.set
2
		this.setLoad(load);
3
		this.setCpuLoad(cpuload);
4
		this.setMemLoad(memload);
5
		this.setThreadLoad(threadload);
6
		this.setHost(host);
7
		this.setPort(port);
8
		this.setProtocol(protocol);
9
		this.setTimeStamp(time
2
Name(name);
3
        this.setValue(value);
4
        this.setDomain(domain);
5
        this.setPath(path);
6
        this.setSecure(secure);
7
        this.setExpires(expires);
8
        this.setPathSpecified(hasPath);
10
);
9
        this.setDomainSpecified(hasDomain);
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 having the same super class
Number of node comparisons72
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment5
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    this.setHealth(health);
                                                        
    2
    this.setLoad(load);
                                                
    3
    this.setCpuLoad(cpuload);
                                                            
                                                
    4
    this.setPath(path);
    4
    this.setMemLoad(memload);
                                                            
    5
    this.setThreadLoad(threadload);
                                                                        
    6
    this.setHost(host);
    6
    this.setHost(host);
    2
    this.setValue(value);
    Differences
    Expression1Expression2Difference
    setHostsetValueMETHOD_INVOCATION_NAME_MISMATCH
    hostvalueVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.setHost(host) is a void method call, and thus it cannot be parameterized
    Expression this.setValue(value) is a void method call, and thus it cannot be parameterized
    2
    this.setValue(value);
    7
    this.setPort(port);
    7
    this.setPort(port);
    1
    this.setName(name);
    Differences
    Expression1Expression2Difference
    setPortsetNameMETHOD_INVOCATION_NAME_MISMATCH
    portnameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.setPort(port) is a void method call, and thus it cannot be parameterized
    Expression this.setName(name) is a void method call, and thus it cannot be parameterized
    1
    this.setName(name);
    8
    this.setProtocol(protocol);
    8
    this.setProtocol(protocol);
    3
    this.setDomain(domain);
    Differences
    Expression1Expression2Difference
    setProtocolsetDomainMETHOD_INVOCATION_NAME_MISMATCH
    protocoldomainVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.setProtocol(protocol) is a void method call, and thus it cannot be parameterized
    Expression this.setDomain(domain) is a void method call, and thus it cannot be parameterized
    3
    this.setDomain(domain);
                                                        
    5
    this.setSecure(secure);
    9
    this.setTimeStamp(time);
    9
    this.setTimeStamp(time);
    6
    this.setExpires(expires);
    Differences
    Expression1Expression2Difference
    setTimeStampsetExpiresMETHOD_INVOCATION_NAME_MISMATCH
    timeexpiresVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.setTimeStamp(time) is a void method call, and thus it cannot be parameterized
    Expression this.setExpires(expires) is a void method call, and thus it cannot be parameterized
    6
    this.setExpires(expires);
                                                                        
    7
    this.setPathSpecified(hasPath);
                                                                                
    8
    this.setDomainSpecified(hasDomain);
    Precondition Violations (8)
    Row Violation
    1Expression this.setHost(host) is a void method call, and thus it cannot be parameterized
    2Expression this.setValue(value) is a void method call, and thus it cannot be parameterized
    3Expression this.setPort(port) is a void method call, and thus it cannot be parameterized
    4Expression this.setName(name) is a void method call, and thus it cannot be parameterized
    5Expression this.setProtocol(protocol) is a void method call, and thus it cannot be parameterized
    6Expression this.setDomain(domain) is a void method call, and thus it cannot be parameterized
    7Expression this.setTimeStamp(time) is a void method call, and thus it cannot be parameterized
    8Expression this.setExpires(expires) is a void method call, and thus it cannot be parameterized