RFR: 8268056: Update java.net and java.nio to use switch expressions [v2]

Patrick Concannon pconcannon at openjdk.java.net
Tue Jun 1 17:20:40 UTC 2021


On Tue, 1 Jun 2021 16:56:39 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Patrick Concannon has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8268056: Reverted changes to URLDecoder; reformatted change to FileTime
>
> src/java.base/share/classes/java/nio/file/attribute/FileTime.java line 256:
> 
>> 254:                     nanos = (int) Math.floorMod(value, NANOS_PER_SECOND);
>> 255:                 }
>> 256:                 default -> throw new AssertionError("Unit not handled");
> 
> The formatting here is all messed up, I think you'll need to fix this up before it can be reviewed.

Sorry about that. I've changed it now. See 2f179b5

-------------

PR: https://git.openjdk.java.net/jdk/pull/4285


More information about the nio-dev mailing list