Remove more finals from method signatures
Change-Id: I5849ebf378469dcfd5b89bed88c6f7dedf67f7ba Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -60,11 +60,11 @@ class CommandFactoryProvider implements Provider<CommandFactory>, LifecycleListe
|
||||
|
||||
@Inject
|
||||
CommandFactoryProvider(
|
||||
@CommandName(Commands.ROOT) final DispatchCommandProvider d,
|
||||
@GerritServerConfig final Config cfg,
|
||||
final WorkQueue workQueue,
|
||||
final SshLog l,
|
||||
final SshScope s,
|
||||
@CommandName(Commands.ROOT) DispatchCommandProvider d,
|
||||
@GerritServerConfig Config cfg,
|
||||
WorkQueue workQueue,
|
||||
SshLog l,
|
||||
SshScope s,
|
||||
SchemaFactory<ReviewDb> sf) {
|
||||
dispatcher = d;
|
||||
log = l;
|
||||
|
||||
@@ -62,14 +62,14 @@ class DatabasePubKeyAuth implements PublickeyAuthenticator {
|
||||
|
||||
@Inject
|
||||
DatabasePubKeyAuth(
|
||||
final SshKeyCacheImpl skc,
|
||||
final SshLog l,
|
||||
final IdentifiedUser.GenericFactory uf,
|
||||
final PeerDaemonUser.Factory pf,
|
||||
final SitePaths site,
|
||||
final KeyPairProvider hostKeyProvider,
|
||||
@GerritServerConfig final Config cfg,
|
||||
final SshScope s) {
|
||||
SshKeyCacheImpl skc,
|
||||
SshLog l,
|
||||
IdentifiedUser.GenericFactory uf,
|
||||
PeerDaemonUser.Factory pf,
|
||||
SitePaths site,
|
||||
KeyPairProvider hostKeyProvider,
|
||||
@GerritServerConfig Config cfg,
|
||||
SshScope s) {
|
||||
sshKeyCache = skc;
|
||||
sshLog = l;
|
||||
userFactory = uf;
|
||||
@@ -162,7 +162,7 @@ class DatabasePubKeyAuth implements PublickeyAuthenticator {
|
||||
return p.keys;
|
||||
}
|
||||
|
||||
private SshKeyCacheEntry find(final Iterable<SshKeyCacheEntry> keyList, PublicKey suppliedKey) {
|
||||
private SshKeyCacheEntry find(Iterable<SshKeyCacheEntry> keyList, PublicKey suppliedKey) {
|
||||
for (SshKeyCacheEntry k : keyList) {
|
||||
if (k.match(suppliedKey)) {
|
||||
return k;
|
||||
|
||||
@@ -149,16 +149,16 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
||||
|
||||
@Inject
|
||||
SshDaemon(
|
||||
final CommandFactory commandFactory,
|
||||
final NoShell noShell,
|
||||
final PublickeyAuthenticator userAuth,
|
||||
final GerritGSSAuthenticator kerberosAuth,
|
||||
final KeyPairProvider hostKeyProvider,
|
||||
final IdGenerator idGenerator,
|
||||
@GerritServerConfig final Config cfg,
|
||||
final SshLog sshLog,
|
||||
@SshListenAddresses final List<SocketAddress> listen,
|
||||
@SshAdvertisedAddresses final List<String> advertised,
|
||||
CommandFactory commandFactory,
|
||||
NoShell noShell,
|
||||
PublickeyAuthenticator userAuth,
|
||||
GerritGSSAuthenticator kerberosAuth,
|
||||
KeyPairProvider hostKeyProvider,
|
||||
IdGenerator idGenerator,
|
||||
@GerritServerConfig Config cfg,
|
||||
SshLog sshLog,
|
||||
@SshListenAddresses List<SocketAddress> listen,
|
||||
@SshAdvertisedAddresses List<String> advertised,
|
||||
MetricMaker metricMaker) {
|
||||
setPort(IANA_SSH_PORT /* never used */);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class StreamCommandExecutorProvider implements Provider<WorkQueue.Executor> {
|
||||
private final WorkQueue queues;
|
||||
|
||||
@Inject
|
||||
StreamCommandExecutorProvider(@GerritServerConfig final Config config, WorkQueue wq) {
|
||||
StreamCommandExecutorProvider(@GerritServerConfig Config config, WorkQueue wq) {
|
||||
final int cores = Runtime.getRuntime().availableProcessors();
|
||||
poolSize = config.getInt("sshd", "streamThreads", cores + 1);
|
||||
queues = wq;
|
||||
|
||||
Reference in New Issue
Block a user