changeset 39343:3dbae815788f

8159616: java.time.Instant falls through switch statement Summary: Removed the unneeded case statement INSTANT_SECONDS Reviewed-by: rriggs, scolebourne
author bgopularam
date Mon, 04 Jul 2016 10:50:28 +0000
parents f66a89ed6fca
children 7a2263aa5b3d
files jdk/src/java.base/share/classes/java/time/Instant.java
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }