File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java | |||
Method name: void sumTest()
|
Method name: void sumTest()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String maxIntVal = Integer.toString(Integer.MAX_VALUE);↵ | 1 | String maxLongVal = Long.toString(Long.MAX_VALUE);↵ | |
2 | String minIntVal = Integer.toString(Integer.MIN_VALUE);↵ | 2 | String minLongVal = Long.toString(Long.MIN_VALUE);↵ | |
3 | checkSum(is,maxIntVal, new String[]{maxIntVal,"0"});↵ | 3 | checkSum(ls,maxLongVal, new String[]{maxLongVal,"0"});↵ | |
4 | checkSum(is,minIntVal, new String[]{maxIntVal,"1"}); | 4 | checkSum(ls,minLongVal, new String[]{maxLongVal,"1"}); | |
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 the same method |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | String maxIntVal = Integer.toString(Integer.MAX_VALUE); |
| 21 | String maxLongVal = Long.toString(Long.MAX_VALUE); | ||||||||||||||||||||||
8 | String minIntVal = Integer.toString(Integer.MIN_VALUE); |
| 22 | String minLongVal = Long.toString(Long.MIN_VALUE); | ||||||||||||||||||||||
9 | checkSum(is, maxIntVal, new String[] {maxIntVal, "0"}); |
| 23 | checkSum(ls, maxLongVal, new String[] {maxLongVal, "0"}); | ||||||||||||||||||||||
10 | checkSum(is, minIntVal, new String[] {maxIntVal, "1"}); |
| 24 | checkSum(ls, minLongVal, new String[] {maxLongVal, "1"}); |
Row | Violation |
---|---|
1 | Expression Integer cannot be unified with expression Long , because common superclass java.lang.Number does not declare member(s) public static java.lang.String toString(int) , public static java.lang.String toString(long) |
2 | Type int of variable Integer.MAX_VALUE does not match with type long of variable Long.MAX_VALUE |
3 | Expression Integer cannot be unified with expression Long , because common superclass java.lang.Number does not declare member(s) public static java.lang.String toString(int) , public static java.lang.String toString(long) |
4 | Expression Integer cannot be unified with expression Long , because common superclass java.lang.Number does not declare member(s) public static java.lang.String toString(int) , public static java.lang.String toString(long) |
5 | Type int of variable Integer.MIN_VALUE does not match with type long of variable Long.MIN_VALUE |
6 | Expression Integer cannot be unified with expression Long , because common superclass java.lang.Number does not declare member(s) public static java.lang.String toString(int) , public static java.lang.String toString(long) |
7 | Clone fragment #1 returns variables maxIntVal , while Clone fragment #2 returns variables |