8080450: doc for Double/Int/LongSummaryStatistics.toString has errors
authorsmarks
Wed, 24 Jun 2015 16:08:58 -0700
changeset 31262 b694a580405b
parent 31261 1659bd59ead1
child 31263 a81a0af34ca0
8080450: doc for Double/Int/LongSummaryStatistics.toString has errors Reviewed-by: darcy, lancea
jdk/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java
jdk/src/java.base/share/classes/java/util/IntSummaryStatistics.java
jdk/src/java.base/share/classes/java/util/LongSummaryStatistics.java
--- 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}",