File path: /jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java | |||
Method name: StringBuffer format(double, StringBuffer, FieldPosition)
|
Method name: StringBuffer format(long, StringBuffer, FieldPosition)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | StringBuffer result = new StringBuffer();↵ | 1 | StringBuffer result = new StringBuffer();↵ | |
2 | if (this.showBase) {↵ | 2 | if (this.showBase) {↵ | |
3 | result.append(this.baseLabel);↵ | 3 | result.append(this.baseLabel);↵ | |
4 | result.append(this.powerLabel);↵ | 4 | result.append("^");↵ | |
5 | }↵ | 5 | }↵ | |
6 | result.append(this.formatter.format(calculateLog(number)));↵ | 6 | result.append(this.formatter.format(calculateLog(number)));↵ | |
7 | return result; | 7 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 14 |
Number of mapped statements | 6 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer result = new StringBuffer(); | 1 | StringBuffer result = new StringBuffer(); | ||||||||||||
2 | if (this.showBase) | 2 | if (this.showBase) | ||||||||||||
3 | result.append(this.baseLabel); | 3 | result.append(this.baseLabel); | ||||||||||||
4 | result.append(this.powerLabel); |
| 4 | result.append("^"); | |||||||||||
5 | result.append(this.formatter.format(calculateLog(number))); |
| 5 | result.append(this.formatter.format(calculateLog(number))); | |||||||||||
6 | return result; | 6 | return result; |
Row | Violation |
---|---|
1 | Type double of variable number does not match with type long of variable number |