8303024: (fs) WindowsFileSystem.supportedFileAttributeViews can use Set.of

Reviewed-by: bpb
This commit is contained in:
Glavo 2023-02-22 17:16:49 +00:00 committed by Brian Burkhalter
parent d7ada66129
commit f893d2315d

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -203,8 +203,7 @@ class WindowsFileSystem
} }
// supported views // supported views
private static final Set<String> supportedFileAttributeViews = Collections private static final Set<String> supportedFileAttributeViews = Set.of("basic", "dos", "acl", "owner", "user");
.unmodifiableSet(new HashSet<String>(Arrays.asList("basic", "dos", "acl", "owner", "user")));
@Override @Override
public Set<String> supportedFileAttributeViews() { public Set<String> supportedFileAttributeViews() {