8015686: {Int|Long}SummaryStatistics toString() throws IllegalFormatConversionException
Reviewed-by: dholmes, alanb, psandoz
This commit is contained in:
parent
f3d7029319
commit
1f2b4683fd
@ -159,7 +159,7 @@ public class IntSummaryStatistics implements IntConsumer {
|
||||
*/
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"%s{count=%d, sum=%d, min=%d, average=%d, max=%d}",
|
||||
"%s{count=%d, sum=%d, min=%d, average=%f, max=%d}",
|
||||
this.getClass().getSimpleName(),
|
||||
getCount(),
|
||||
getSum(),
|
||||
|
@ -171,7 +171,7 @@ public class LongSummaryStatistics implements LongConsumer, IntConsumer {
|
||||
*/
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"%s{count=%d, sum=%d, min=%d, average=%d, max=%d}",
|
||||
"%s{count=%d, sum=%d, min=%d, average=%f, max=%d}",
|
||||
this.getClass().getSimpleName(),
|
||||
getCount(),
|
||||
getSum(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user