Skip to content

Commit

Permalink
chore(S3FS): Extract supported file attribute views to static field (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest authored Oct 3, 2023
1 parent 3f2db3e commit 2a69baf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/software/amazon/nio/spi/s3/S3FileSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ public Iterable<FileStore> getFileStores() {
return Collections.EMPTY_SET;
}

private static final Set<String> supportedFileAttributeViews =
Collections.singleton(BASIC_FILE_ATTRIBUTE_VIEW);
/**
* Returns the set of the file attribute views supported by this {@code FileSystem}.
* <br>
Expand All @@ -326,9 +328,7 @@ public Iterable<FileStore> getFileStores() {
*/
@Override
public Set<String> supportedFileAttributeViews() {
HashSet<String> views = new HashSet<>(2);
views.add(BASIC_FILE_ATTRIBUTE_VIEW);
return Collections.unmodifiableSet(views);
return supportedFileAttributeViews;
}

/**
Expand Down

0 comments on commit 2a69baf

Please sign in to comment.