Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303024

(fs) WindowsFileSystem.supportedFileAttributeViews can use Set.of

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 21
    • None
    • 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");

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

              Created:
              Updated:
              Resolved: