8159616: java.time.Instant falls through switch statement
Summary: Removed the unneeded case statement INSTANT_SECONDS
Reviewed-by: rriggs, scolebourne
--- 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);
}