8159616: java.time.Instant falls through switch statement
Removed the unneeded case statement INSTANT_SECONDS Reviewed-by: rriggs, scolebourne
This commit is contained in:
parent
a06c5e0f57
commit
9717ec036b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user