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); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 72 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
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); |
| 2 | this.setValue(value); | ||||||||||||||||
7 | this.setPort(port); |
| 1 | this.setName(name); | ||||||||||||||||
8 | this.setProtocol(protocol); |
| 3 | this.setDomain(domain); | ||||||||||||||||
| 5 | this.setSecure(secure); | ||||||||||||||||||
9 | this.setTimeStamp(time); |
| 6 | this.setExpires(expires); | ||||||||||||||||
| 7 | this.setPathSpecified(hasPath); | ||||||||||||||||||
| 8 | this.setDomainSpecified(hasDomain); |
Row | Violation |
---|---|
1 | Expression this.setHost(host) is a void method call, and thus it cannot be parameterized |
2 | Expression this.setValue(value) is a void method call, and thus it cannot be parameterized |
3 | Expression this.setName(name) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression this.setPort(port) is a void method call, and thus it cannot be parameterized |
5 | Expression this.setName(name) is a void method call, and thus it cannot be parameterized |
6 | Expression this.setProtocol(protocol) is a void method call, and thus it cannot be parameterized |
7 | Expression this.setDomain(domain) is a void method call, and thus it cannot be parameterized |
8 | Expression this.setTimeStamp(time) is a void method call, and thus it cannot be parameterized |
9 | Expression this.setExpires(expires) is a void method call, and thus it cannot be parameterized |