--- old/src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java 2019-12-09 18:35:50.983205416 +0000 +++ new/src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java 2019-12-09 18:35:50.531194453 +0000 @@ -1001,8 +1001,7 @@ return Util.newMappedByteBufferR(0, 0, dummy, null, isSync); else return Util.newMappedByteBuffer(0, 0, dummy, null, isSync); - } - else if ((!writable) || (prot == MAP_RO)) { + } else if ((!writable) || (prot == MAP_RO)) { return Util.newMappedByteBufferR((int)unmapper.cap, unmapper.address + unmapper.pagePosition, unmapper.fd, @@ -1123,13 +1122,13 @@ private int toProt(MapMode mode) { int prot; - if (mode == MapMode.READ_ONLY) + if (mode == MapMode.READ_ONLY) { prot = MAP_RO; - else if (mode == MapMode.READ_WRITE) + } else if (mode == MapMode.READ_WRITE) { prot = MAP_RW; - else if (mode == MapMode.PRIVATE) + } else if (mode == MapMode.PRIVATE) { prot = MAP_PV; - else if (mode == ExtendedMapMode.READ_ONLY_SYNC) { + } else if (mode == ExtendedMapMode.READ_ONLY_SYNC) { prot = MAP_RO; } else if (mode == ExtendedMapMode.READ_WRITE_SYNC) { prot = MAP_RW;