return LOAD_6;
} else if (load > 60 && load <= 70) {
return LOAD_7;
} else if (load > 70 && load <= 80) {
return LOAD_8;
} else if (load > 80 && load <= 90) {
return LOAD_9;
return LOAD_1;
} else if (load > 10 && load <= 20) {
return LOAD_2;
} else if (load > 20 && load <= 30) {
return LOAD_3;
} else if (load > 30 && load <= 40) {
return LOAD_4;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/ServerPanel.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/ServerPanel.java
|
Method name: ImageIcon getLoadImageIcon(int)
|
|
Method name: ImageIcon getLoadImageIcon(int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | return LOAD_6;↵ | | 1 | return LOAD_1;↵
|
2 | } else if (load > 60 && load <= 70) {↵ | | 2 | } else if (load > 10 && load <= 20) {↵
|
3 | return LOAD_7;↵ | | 3 | return LOAD_2;↵
|
4 | } else if (load > 70 && load <= 80) {↵ | | 4 | } else if (load > 20 && load <= 30) {↵
|
5 | return LOAD_8;↵ | | 5 | return LOAD_3;↵
|
6 | } else if (load > 80 && load <= 90) {↵ | | 6 | } else if (load > 30 && load <= 40) {↵
|
7 | return LOAD_9; | | 7 | return LOAD_4;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
12 | return LOAD_6; | | 2 | return LOAD_1; |
Precondition Violations (0)
Row |
Violation |