changeset 7839:3d940b4308ee

Fixes for JDK-8011715; typos in XxxSummaryStatistics
author briangoetz
date Mon, 08 Apr 2013 12:30:39 -0400
parents 526131346981
children 4317c86ff03e
files src/share/classes/java/util/DoubleSummaryStatistics.java src/share/classes/java/util/IntSummaryStatistics.java src/share/classes/java/util/LongSummaryStatistics.java
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/DoubleSummaryStatistics.java	Mon Apr 08 17:16:36 2013 +0200
+++ b/src/share/classes/java/util/DoubleSummaryStatistics.java	Mon Apr 08 12:30:39 2013 -0400
@@ -66,7 +66,7 @@
         sum += other.sum;
         sumOfSquares += other.sumOfSquares;
         min = Math.min(min, other.min);
-        max = Math.min(max, other.max);
+        max = Math.max(max, other.max);
     }
 
     /**
--- a/src/share/classes/java/util/IntSummaryStatistics.java	Mon Apr 08 17:16:36 2013 +0200
+++ b/src/share/classes/java/util/IntSummaryStatistics.java	Mon Apr 08 12:30:39 2013 -0400
@@ -69,7 +69,7 @@
         sum += other.sum;
         sumOfSquares += other.sumOfSquares;
         min = Math.min(min, other.min);
-        max = Math.min(max, other.max);
+        max = Math.max(max, other.max);
     }
 
     /**
--- a/src/share/classes/java/util/LongSummaryStatistics.java	Mon Apr 08 17:16:36 2013 +0200
+++ b/src/share/classes/java/util/LongSummaryStatistics.java	Mon Apr 08 12:30:39 2013 -0400
@@ -78,7 +78,7 @@
         sum += other.sum;
         sumOfSquares += other.sumOfSquares;
         min = Math.min(min, other.min);
-        max = Math.min(max, other.max);
+        max = Math.max(max, other.max);
     }
 
     /**