Skip to content

Commit f893d23

Browse files
GlavoBrian Burkhalter
authored and
Brian Burkhalter
committed
8303024: (fs) WindowsFileSystem.supportedFileAttributeViews can use Set.of
Reviewed-by: bpb
1 parent d7ada66 commit f893d23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/java.base/windows/classes/sun/nio/fs/WindowsFileSystem.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2023, 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
@@ -203,8 +203,7 @@ public Iterator<FileStore> iterator() {
203203
}
204204

205205
// supported views
206-
private static final Set<String> supportedFileAttributeViews = Collections
207-
.unmodifiableSet(new HashSet<String>(Arrays.asList("basic", "dos", "acl", "owner", "user")));
206+
private static final Set<String> supportedFileAttributeViews = Set.of("basic", "dos", "acl", "owner", "user");
208207

209208
@Override
210209
public Set<String> supportedFileAttributeViews() {

0 commit comments

Comments
 (0)