On Tue, 1 Jun 2021 16:44:38 GMT, Patrick Concannon <pconcan...@openjdk.org> 
wrote:

> Hi,
> 
> Could someone please review my code for updating the code in the `java.net` 
> and `java.nio` packages to make use of the switch expressions?
> 
> Kind regards,
> Patrick

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.

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

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

Reply via email to