From 9717ec036b85a6352eeda0c41e352024d91d1964 Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Gopularam Date: Mon, 4 Jul 2016 10:50:28 +0000 Subject: [PATCH] 8159616: java.time.Instant falls through switch statement Removed the unneeded case statement INSTANT_SECONDS Reviewed-by: rriggs, scolebourne --- jdk/src/java.base/share/classes/java/time/Instant.java | 1 - 1 file changed, 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/time/Instant.java b/jdk/src/java.base/share/classes/java/time/Instant.java index 7f526e68c6b..3fd40d04d9c 100644 --- a/jdk/src/java.base/share/classes/java/time/Instant.java +++ b/jdk/src/java.base/share/classes/java/time/Instant.java @@ -561,7 +561,6 @@ public final class Instant 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); }