From 99b4d18cba3b6336566de0107f20db3de51d072f Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Mon, 3 May 2021 10:22:37 +0200 Subject: [PATCH] pool: use Set#of to construct O_READ and O_RW constants Less dependency on guava with no semantic change. Acked-by: Paul Millar Acked-by: Lea Morschel Target: master Require-book: no Require-notes: no --- .../src/main/java/org/dcache/pool/repository/FileStore.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/dcache/src/main/java/org/dcache/pool/repository/FileStore.java b/modules/dcache/src/main/java/org/dcache/pool/repository/FileStore.java index 95dbcc090b4..1d1b51670be 100644 --- a/modules/dcache/src/main/java/org/dcache/pool/repository/FileStore.java +++ b/modules/dcache/src/main/java/org/dcache/pool/repository/FileStore.java @@ -1,7 +1,5 @@ package org.dcache.pool.repository; -import com.google.common.collect.Sets; - import java.io.IOException; import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.OpenOption; @@ -22,8 +20,8 @@ public interface FileStore { - static final Set O_READ = Sets.immutableEnumSet(READ); - static final Set O_RW = Sets.immutableEnumSet(READ, WRITE, CREATE); + Set O_READ = Set.of(READ); + Set O_RW = Set.of(READ, WRITE, CREATE); /** * Returns the URI to the data file for the given PNFS id.