Format tweak and use final.
@@ -1171,8 +1171,12 @@ public static Path setReadOnly(final Path path, final boolean readOnly, final Li
permissions.add(PosixFilePermission.OWNER_READ);
permissions.add(PosixFilePermission.GROUP_READ);
permissions.add(PosixFilePermission.OTHERS_READ);
- List<PosixFilePermission> writePermissions = Arrays.asList(PosixFilePermission.OWNER_WRITE, PosixFilePermission.GROUP_WRITE,
+ // @formatter:off
+ final List<PosixFilePermission> writePermissions = Arrays.asList(
+ PosixFilePermission.OWNER_WRITE,
+ PosixFilePermission.GROUP_WRITE,
PosixFilePermission.OTHERS_WRITE);
+ // @formatter:on
if (readOnly) {
permissions.removeAll(writePermissions);
} else {
