8080450: doc for Double/Int/LongSummaryStatistics.toString has errors
Reviewed-by: darcy, lancea
--- a/jdk/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java Wed Jun 24 15:15:10 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java Wed Jun 24 16:08:58 2015 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -242,8 +242,6 @@
}
/**
- * {@inheritDoc}
- *
* Returns a non-empty string representation of this object suitable for
* debugging. The exact presentation format is unspecified and may vary
* between implementations and versions.
--- a/jdk/src/java.base/share/classes/java/util/IntSummaryStatistics.java Wed Jun 24 15:15:10 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/IntSummaryStatistics.java Wed Jun 24 16:08:58 2015 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -150,14 +150,12 @@
return getCount() > 0 ? (double) getSum() / getCount() : 0.0d;
}
- @Override
/**
- * {@inheritDoc}
- *
* Returns a non-empty string representation of this object suitable for
* debugging. The exact presentation format is unspecified and may vary
* between implementations and versions.
*/
+ @Override
public String toString() {
return String.format(
"%s{count=%d, sum=%d, min=%d, average=%f, max=%d}",
--- a/jdk/src/java.base/share/classes/java/util/LongSummaryStatistics.java Wed Jun 24 15:15:10 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/LongSummaryStatistics.java Wed Jun 24 16:08:58 2015 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -162,14 +162,12 @@
return getCount() > 0 ? (double) getSum() / getCount() : 0.0d;
}
- @Override
/**
- * {@inheritDoc}
- *
* Returns a non-empty string representation of this object suitable for
* debugging. The exact presentation format is unspecified and may vary
* between implementations and versions.
*/
+ @Override
public String toString() {
return String.format(
"%s{count=%d, sum=%d, min=%d, average=%f, max=%d}",