File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/LogFunction.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/LogFunction2.java | |||
Method name: String execute(SampleResult, Sampler)
|
Method name: String execute(SampleResult, Sampler)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | String stringToLog = ((CompoundVariable) values[0]).execute();↵ | 1 | String stringToLog = ((CompoundVariable) values[0]).execute();↵ | |
2 | String priorityString;↵ | 2 | String priorityString;↵ | |
3 | if (values.length > 1) { // We have a default↵ | 3 | if (values.length > 1) { // We have a default↵ | |
4 | priorityString = ((CompoundVariable) values[1]).execute();↵ | 4 | priorityString = ((CompoundVariable) values[1]).execute();↵ | |
5 | if (priorityString.length() == 0) {↵ | 5 | if (priorityString.length() == 0) {↵ | |
6 | priorityString = DEFAULT_PRIORITY;↵ | 6 | priorityString = DEFAULT_PRIORITY;↵ | |
7 | }↵ | 7 | }↵ | |
8 | } else {↵ | 8 | } else {↵ | |
9 | priorityString = DEFAULT_PRIORITY;↵ | 9 | priorityString = DEFAULT_PRIORITY;↵ | |
10 | }↵ | 10 | }↵ | |
11 | Throwable t = null; | 11 |
| |
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.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 22 |
Number of mapped statements | 8 |
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) | 11.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | String stringToLog = ((CompoundVariable)values[0]).execute(); | 1 | String stringToLog = ((CompoundVariable)values[0]).execute(); | |
2 | String priorityString; | 2 | String priorityString; | |
3 | if (values.length > 1) | 3 | if (values.length > 1) | |
4 | priorityString = ((CompoundVariable)values[1]).execute(); | 4 | priorityString = ((CompoundVariable)values[1]).execute(); | |
5 | if (priorityString.length() == 0) | 5 | if (priorityString.length() == 0) | |
6 | priorityString = DEFAULT_PRIORITY; | 6 | priorityString = DEFAULT_PRIORITY; | |
else | else | |||
7 | priorityString = DEFAULT_PRIORITY; | 7 | priorityString = DEFAULT_PRIORITY; | |
8 | Throwable t = null; | 8 | Throwable t = null; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables t, stringToLog, priorityString , while Clone fragment #2 returns variables t, stringToLog, priorityString |