src/share/classes/java/util/LongSummaryStatistics.java
Print this page
rev 7213 : 8015686: {Int|Long}SummaryStatistics toString() throws IllegalFormatConversionException
Reviewed-by: duke
@@ -169,11 +169,11 @@
* debugging. The exact presentation format is unspecified and may vary
* between implementations and versions.
*/
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(),
getMin(),
getAverage(),