use protected constant and mutableSet for final field

This commit is contained in:
Mohamed Karray
2018-12-06 18:01:39 +01:00
parent 08d5ae4a1b
commit 8232938afd
2 changed files with 6 additions and 6 deletions

View File

@@ -43,7 +43,6 @@ import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sonia.scm.SCMContextProvider;
import sonia.scm.io.FileSystem;
import sonia.scm.plugin.Extension;
import sonia.scm.repository.spi.GitRepositoryServiceProvider;
import sonia.scm.schedule.Scheduler;

View File

@@ -33,6 +33,7 @@
package sonia.scm.repository.spi;
import com.google.common.collect.ImmutableSet;
import sonia.scm.repository.Feature;
import sonia.scm.repository.GitRepositoryHandler;
import sonia.scm.repository.Repository;
@@ -53,7 +54,7 @@ public class GitRepositoryServiceProvider extends RepositoryServiceProvider
/** Field description */
//J-
public static final Set<Command> COMMANDS = EnumSet.of(
public static final Set<Command> COMMANDS = ImmutableSet.of(
Command.BLAME,
Command.BROWSE,
Command.CAT,
@@ -67,7 +68,7 @@ public class GitRepositoryServiceProvider extends RepositoryServiceProvider
Command.PULL,
Command.MERGE
);
public static final Set<Feature> FEATURES = EnumSet.of(Feature.INCOMING_REVISION);
protected static final Set<Feature> FEATURES = EnumSet.of(Feature.INCOMING_REVISION);
//J+
//~--- constructors ---------------------------------------------------------