File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/HTMLAssertion.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/HTMLAssertion.java | |||
Method name: void setErrorThreshold(long)
|
Method name: void setWarningThreshold(long)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (inErrorThreshold < 0L) {↵ | 1 | if (inWarningThreshold < 0L) {↵ | |
2 | throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); //$NON-NLS-1$↵ | 2 | throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); //$NON-NLS-1$↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (inErrorThreshold == Long.MAX_VALUE) {↵ | 4 | if (inWarningThreshold == Long.MAX_VALUE) {↵ | |
5 | setProperty(new LongProperty(ERROR_THRESHOLD_KEY, 0));↵ | 5 | setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0));↵ | |
6 | } else {↵ | 6 | } else {↵ | |
7 | setProperty(new LongProperty(ERROR_THRESHOLD_KEY, inErrorThreshold));↵ | 7 | setProperty(new LongProperty(WARNING_THRESHOLD_KEY, inWarningThreshold));↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
Number of mapped statements | 5 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (inErrorThreshold < 0L) |
| 1 | if (inWarningThreshold < 0L) | |||||||||||||
2 | throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); | 2 | throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); | ||||||||||||||
3 | if (inErrorThreshold == Long.MAX_VALUE) |
| 3 | if (inWarningThreshold == Long.MAX_VALUE) | |||||||||||||
4 | setProperty(new LongProperty(ERROR_THRESHOLD_KEY, 0)); |
| 4 | setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0)); | |||||||||||||
else | else | ||||||||||||||||
5 | setProperty(new LongProperty(ERROR_THRESHOLD_KEY, inErrorThreshold)); |
| 5 | setProperty(new LongProperty(WARNING_THRESHOLD_KEY, inWarningThreshold)); |
Row | Violation |
---|