File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/RunningSample.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/SamplingStatCalculator.java | |||
Method name: String toString()
|
Method name: String toString()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | StringBuffer mySB = new StringBuffer();↵ | 1 | StringBuffer mySB = new StringBuffer();↵ | |
2 | mySB.append("Samples: " + this.getNumSamples() + " ");↵ | 2 | mySB.append("Samples: " + this.getCount() + " ");↵ | |
3 | mySB.append("Avg: " + this.getAverage() + " ");↵ | 3 | mySB.append("Avg: " + this.getMean() + " ");↵ | |
4 | mySB.append("Min: " + this.getMin() + " ");↵ | 4 | mySB.append("Min: " + this.getMin() + " ");↵ | |
5 | mySB.append("Max: " + this.getMax() + " ");↵ | 5 | mySB.append("Max: " + this.getMax() + " ");↵ | |
6 | mySB.append("Error Rate: " + this.getErrorPercentageString() + " ");↵ | 6 | mySB.append("Error Rate: " + this.getErrorPercentage() + " ");↵ | |
7 | mySB.append("Sample Rate: " + this.getRateString());↵ | 7 | mySB.append("Sample Rate: " + this.getRate());↵ | |
8 | return (mySB.toString()); | 8 |
| |
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 different classes |
Number of node comparisons | 50 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer mySB = new StringBuffer(); | 1 | StringBuffer mySB = new StringBuffer(); | |||||||||||||||
2 | mySB.append("Samples: " + this.getNumSamples() + " "); |
| 2 | mySB.append("Samples: " + this.getCount() + " "); | ||||||||||||||
3 | mySB.append("Avg: " + this.getAverage() + " "); |
| 3 | mySB.append("Avg: " + this.getMean() + " "); | ||||||||||||||
4 | mySB.append("Min: " + this.getMin() + " "); |
| 4 | mySB.append("Min: " + this.getMin() + " "); | ||||||||||||||
5 | mySB.append("Max: " + this.getMax() + " "); |
| 5 | mySB.append("Max: " + this.getMax() + " "); | ||||||||||||||
6 | mySB.append("Error Rate: " + this.getErrorPercentageString() + " "); |
| 6 | mySB.append("Error Rate: " + this.getErrorPercentage() + " "); | ||||||||||||||
7 | mySB.append("Sample Rate: " + this.getRateString()); |
| 7 | mySB.append("Sample Rate: " + this.getRate()); | ||||||||||||||
8 | return (mySB.toString()); | 8 | return (mySB.toString()); |
Row | Violation |
---|---|
1 | Type long of variable this.getNumSamples() does not match with type int of variable this.getCount() |
2 | Type long of variable this.getAverage() does not match with type double of variable this.getMean() |
3 | Type long of variable this.getMin() does not match with type java.lang.Number of variable this.getMin() |
4 | Type long of variable this.getMax() does not match with type java.lang.Number of variable this.getMax() |
5 | Type java.lang.String of variable this.getErrorPercentageString() does not match with type double of variable this.getErrorPercentage() |
6 | Type java.lang.String of variable this.getRateString() does not match with type double of variable this.getRate() |