changeset 14964:167660ada3b1

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 b7da29e8b7f1
children 4a36d1f5e1f9
files src/java.base/share/classes/java/time/Instant.java
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/time/Instant.java	Mon Jul 04 10:08:18 2016 +0200
+++ b/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);
         }