Configurable Log File Permissions with
PosixFilePermission. Reformat the new method definePathAttributeView().
@@ -174,8 +174,7 @@ public class FileManager extends OutputStreamManager {
// FileOutputStream may not create new file on all jvm
path.toFile().createNewFile();
- final PosixFileAttributeView view = Files.getFileAttributeView(path,
- PosixFileAttributeView.class);
+ final PosixFileAttributeView view = Files.getFileAttributeView(path, PosixFileAttributeView.class);
if (view != null) {
final UserPrincipalLookupService lookupService = FileSystems.getDefault()
.getUserPrincipalLookupService();
@@ -186,8 +185,7 @@ public class FileManager extends OutputStreamManager {
}
}
if (fileGroup != null) {
- final GroupPrincipal groupPrincipal = lookupService
- .lookupPrincipalByGroupName(fileGroup);
+ final GroupPrincipal groupPrincipal = lookupService.lookupPrincipalByGroupName(fileGroup);
if (groupPrincipal != null) {
view.setGroup(groupPrincipal);
}
