jdk/src/share/classes/java/time/LocalTime.java
changeset 23597 d4ca7cc9c0c9
parent 22566 4ebe53dd7814
child 24256 da9a41004459
--- a/jdk/src/share/classes/java/time/LocalTime.java	Thu Mar 06 17:46:12 2014 +0000
+++ b/jdk/src/share/classes/java/time/LocalTime.java	Thu Mar 06 17:16:20 2014 +0000
@@ -838,9 +838,9 @@
                 case NANO_OF_SECOND: return withNano((int) newValue);
                 case NANO_OF_DAY: return LocalTime.ofNanoOfDay(newValue);
                 case MICRO_OF_SECOND: return withNano((int) newValue * 1000);
-                case MICRO_OF_DAY: return plusNanos((newValue - toNanoOfDay() / 1000) * 1000);
+                case MICRO_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000);
                 case MILLI_OF_SECOND: return withNano((int) newValue * 1000_000);
-                case MILLI_OF_DAY: return plusNanos((newValue - toNanoOfDay() / 1000_000) * 1000_000);
+                case MILLI_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000_000);
                 case SECOND_OF_MINUTE: return withSecond((int) newValue);
                 case SECOND_OF_DAY: return plusSeconds(newValue - toSecondOfDay());
                 case MINUTE_OF_HOUR: return withMinute((int) newValue);