Skip to content

Commit

Permalink
pool: use Set#of to construct O_READ and O_RW constants
Browse files Browse the repository at this point in the history
Less dependency on guava with no semantic change.

Acked-by: Paul Millar
Acked-by: Lea Morschel
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed May 3, 2021
1 parent e78b504 commit 99b4d18
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -22,8 +20,8 @@
public interface FileStore
{

static final Set<StandardOpenOption> O_READ = Sets.immutableEnumSet(READ);
static final Set<StandardOpenOption> O_RW = Sets.immutableEnumSet(READ, WRITE, CREATE);
Set<StandardOpenOption> O_READ = Set.of(READ);
Set<StandardOpenOption> O_RW = Set.of(READ, WRITE, CREATE);

/**
* Returns the URI to the data file for the given PNFS id.
Expand Down

0 comments on commit 99b4d18

Please sign in to comment.