changeset 12237:4e44de0173fb

8080450: doc for Double/Int/LongSummaryStatistics.toString has errors Reviewed-by: darcy, lancea
author smarks
date Wed, 24 Jun 2015 16:08:58 -0700
parents db09207cc779
children 22f901cf304f
files src/java.base/share/classes/java/util/DoubleSummaryStatistics.java src/java.base/share/classes/java/util/IntSummaryStatistics.java src/java.base/share/classes/java/util/LongSummaryStatistics.java
diffstat 3 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/DoubleSummaryStatistics.java	Wed Jun 24 15:15:10 2015 -0700
+++ b/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/src/java.base/share/classes/java/util/IntSummaryStatistics.java	Wed Jun 24 15:15:10 2015 -0700
+++ b/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/src/java.base/share/classes/java/util/LongSummaryStatistics.java	Wed Jun 24 15:15:10 2015 -0700
+++ b/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}",