changeset 7778:7e60beae75ad

add throws declaration for ArithmeticException
author mduigou
date Fri, 29 Mar 2013 14:15:38 -0700
parents ed04983cbf86
children 9f43df4f9ccd
files src/share/classes/java/util/IntSummaryStatistics.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/IntSummaryStatistics.java	Fri Mar 29 12:04:58 2013 -0700
+++ b/src/share/classes/java/util/IntSummaryStatistics.java	Fri Mar 29 14:15:38 2013 -0700
@@ -99,7 +99,7 @@
      * @throws ArithmeticException if the sum value is inexpressible as an
      * {@code int}
      */
-    public int getSum() {
+    public int getSum() throws ArithmeticException {
         if(sum > Integer.MAX_VALUE || sum < Integer.MIN_VALUE) {
             throw new ArithmeticException("sum outside of int magnitude");
         }