File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/FunctionProperty.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/MapProperty.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (o instanceof FunctionProperty) {↵ | 1 | if (o instanceof MapProperty) {↵ | |
2 | if (function != null) {↵ | 2 | if (value != null) {↵ | |
3 | return function.equals(((JMeterProperty) o).getObjectValue());↵ | 3 | return value.equals(((JMeterProperty) o).getObjectValue());↵ | |
4 | }↵ | 4 | }↵ | |
5 | }↵ | 5 | }↵ | |
6 | return false; | 6 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (o instanceof FunctionProperty) |
| 1 | if (o instanceof MapProperty) | ||||||||||||||
2 | if (function != null) |
| 2 | if (value != null) | ||||||||||||||
3 | return function.equals(((JMeterProperty)o).getObjectValue()); |
| 3 | return value.equals(((JMeterProperty)o).getObjectValue()); | ||||||||||||||
4 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.engine.util.CompoundVariable of variable function does not match with type java.util.Map of variable value |
2 | Type org.apache.jmeter.engine.util.CompoundVariable of variable function does not match with type java.util.Map of variable value |