8159616: java.time.Instant falls through switch statement
authorbgopularam
Mon, 04 Jul 2016 10:50:28 +0000
changeset 39343 3dbae815788f
parent 39342 f66a89ed6fca
child 39344 7a2263aa5b3d
8159616: java.time.Instant falls through switch statement Summary: Removed the unneeded case statement INSTANT_SECONDS Reviewed-by: rriggs, scolebourne
jdk/src/java.base/share/classes/java/time/Instant.java
--- a/jdk/src/java.base/share/classes/java/time/Instant.java	Mon Jul 04 10:08:18 2016 +0200
+++ b/jdk/src/java.base/share/classes/java/time/Instant.java	Mon Jul 04 10:50:28 2016 +0000
@@ -561,7 +561,6 @@
                 case NANO_OF_SECOND: return nanos;
                 case MICRO_OF_SECOND: return nanos / 1000;
                 case MILLI_OF_SECOND: return nanos / 1000_000;
-                case INSTANT_SECONDS: INSTANT_SECONDS.checkValidIntValue(seconds);
             }
             throw new UnsupportedTemporalTypeException("Unsupported field: " + field);
         }