(fs) WindowsFileSystem.supportedFileAttributeViews can use Set.of

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: None
    • Component/s: core-libs
    • b11

      private static final Set<String> supportedFileAttributeViews = Collections
              .unmodifiableSet(new HashSet<String>(Arrays.asList("basic", "dos", "acl", "owner", "user")));

      can be simplified to

      private static final Set<String> supportedFileAttributeViews = Set.of("basic", "dos", "acl", "owner", "user");

            Assignee:
            Sergey Tsypanov
            Reporter:
            Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: