8159616: java.time.Instant falls through switch statement

Removed the unneeded case statement INSTANT_SECONDS

Reviewed-by: rriggs, scolebourne
This commit is contained in:
Bhanu Prakash Gopularam 2016-07-04 10:50:28 +00:00
parent a06c5e0f57
commit 9717ec036b

View File

@ -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);
}