| commit | 499bbea5a16ec443cafb8da95ccdc33f6e381d55 | [log] [tgz] |
|---|---|---|
| author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Jun 18 14:53:07 2024 +0100 |
| committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Jun 18 15:49:07 2024 +0000 |
| tree | e8e5d95a76b4e703969a04c12c3a3d2e2b5bfa43 | |
| parent | 89fc47e52a7734fde83ea37bea77a980a23a8f71 [diff] |
Reduce visibility of *CredentialsFactory* classes The SecureCredentialsFactory and AutoReloadSecureCredentialsFactoryDecorator factories do not need to be public as they are not intended to be directly used outside of the replication plugin. Change-Id: If8e828815eae135ffba1b437e48dee875ccc030d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/AutoReloadSecureCredentialsFactoryDecorator.java b/src/main/java/com/googlesource/gerrit/plugins/replication/AutoReloadSecureCredentialsFactoryDecorator.java index e9409a6..94fb910 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/AutoReloadSecureCredentialsFactoryDecorator.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/AutoReloadSecureCredentialsFactoryDecorator.java
@@ -26,7 +26,7 @@ import org.eclipse.jgit.errors.ConfigInvalidException; import org.eclipse.jgit.transport.CredentialsProvider; -public class AutoReloadSecureCredentialsFactoryDecorator implements CredentialsFactory { +class AutoReloadSecureCredentialsFactoryDecorator implements CredentialsFactory { private static final FluentLogger logger = FluentLogger.forEnclosingClass(); private final AtomicReference<SecureCredentialsFactory> secureCredentialsFactory;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java b/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java index ed15b92..a4bd209 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/SecureCredentialsFactory.java
@@ -26,7 +26,7 @@ import org.eclipse.jgit.util.FS; /** Looks up a remote's password in secure.config. */ -public class SecureCredentialsFactory implements CredentialsFactory { +class SecureCredentialsFactory implements CredentialsFactory { private final Config config; @Inject