mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
use immutableset instead of hashset to reduce memory consumption
This commit is contained in:
@@ -35,7 +35,7 @@ package sonia.scm.web;
|
|||||||
|
|
||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Provider;
|
import com.google.inject.Provider;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
@@ -60,7 +60,7 @@ public class SvnPermissionFilter extends ProviderPermissionFilter
|
|||||||
{
|
{
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private static Set<String> WRITEMETHOD_SET = Sets.newHashSet("MKACTIVITY",
|
private static Set<String> WRITEMETHOD_SET = ImmutableSet.of("MKACTIVITY",
|
||||||
"PROPPATCH", "PUT",
|
"PROPPATCH", "PUT",
|
||||||
"CHECKOUT", "MKCOL", "MOVE",
|
"CHECKOUT", "MKCOL", "MOVE",
|
||||||
"COPY", "DELETE", "LOCK",
|
"COPY", "DELETE", "LOCK",
|
||||||
|
|||||||
Reference in New Issue
Block a user