File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/java.base/unix/classes/sun/nio/fs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2008, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2008, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3131import java .nio .file .attribute .PosixFileAttributes ;
3232import java .nio .file .attribute .PosixFilePermission ;
3333import java .nio .file .attribute .UserPrincipal ;
34- import java .util .HashSet ;
34+ import java .util .EnumSet ;
3535import java .util .Set ;
3636import java .util .concurrent .TimeUnit ;
3737
@@ -239,7 +239,7 @@ public GroupPrincipal group() {
239239 @ Override
240240 public Set <PosixFilePermission > permissions () {
241241 int bits = (st_mode & UnixConstants .S_IAMB );
242- HashSet <PosixFilePermission > perms = new HashSet <>( );
242+ EnumSet <PosixFilePermission > perms = EnumSet . noneOf ( PosixFilePermission . class );
243243
244244 if ((bits & UnixConstants .S_IRUSR ) > 0 )
245245 perms .add (PosixFilePermission .OWNER_READ );
You can’t perform that action at this time.
0 commit comments