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() {
|
public String toString() {
|
||||||
return String.format(
|
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(),
|
this.getClass().getSimpleName(),
|
||||||
getCount(),
|
getCount(),
|
||||||
getSum(),
|
getSum(),
|
||||||
|
@ -171,7 +171,7 @@ public class LongSummaryStatistics implements LongConsumer, IntConsumer {
|
|||||||
*/
|
*/
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format(
|
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(),
|
this.getClass().getSimpleName(),
|
||||||
getCount(),
|
getCount(),
|
||||||
getSum(),
|
getSum(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user