8015686: {Int|Long}SummaryStatistics toString() throws IllegalFormatConversionException

Reviewed-by: dholmes, alanb, psandoz
This commit is contained in:
Mike Duigou 2013-05-31 11:06:04 -07:00
parent f3d7029319
commit 1f2b4683fd
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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(),