jdk/src/java.base/share/classes/java/time/LocalDate.java
changeset 38455 43fec67d51a3
parent 35611 08655b6caa22
child 39832 659374edfac7
--- a/jdk/src/java.base/share/classes/java/time/LocalDate.java	Fri May 20 15:50:20 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/time/LocalDate.java	Tue Sep 29 17:28:44 2015 -0700
@@ -826,7 +826,7 @@
      * @return the day-of-week, not null
      */
     public DayOfWeek getDayOfWeek() {
-        int dow0 = (int)Math.floorMod(toEpochDay() + 3, 7);
+        int dow0 = Math.floorMod(toEpochDay() + 3, 7);
         return DayOfWeek.of(dow0 + 1);
     }
 
@@ -1329,7 +1329,7 @@
         long monthCount = year * 12L + (month - 1);
         long calcMonths = monthCount + monthsToAdd;  // safe overflow
         int newYear = YEAR.checkValidIntValue(Math.floorDiv(calcMonths, 12));
-        int newMonth = (int)Math.floorMod(calcMonths, 12) + 1;
+        int newMonth = Math.floorMod(calcMonths, 12) + 1;
         return resolvePreviousValid(newYear, newMonth, day);
     }