From 6272694185782903c1c3fd2c7886613b63ad1329 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Sun, 31 Mar 2019 10:37:25 -0700 Subject: [PATCH] JschConfigSessionFactory: [findbugs] Set synchronized Set synchronized to make the config access consistent. > Inconsistent synchronization of org.eclipse.jgit.transport.JschConfigSessionFactory.config; locked 80% of time In order to make JschConfigSessionFactory threadsafe, synchronize this method as well. Change-Id: I32d1bfc2e98363d254992144e795ce72fe1e8846 Signed-off-by: Masaya Suzuki --- .../org/eclipse/jgit/transport/JschConfigSessionFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java index 0bdd6ba81..79af1ebc6 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java @@ -551,7 +551,7 @@ public abstract class JschConfigSessionFactory extends SshSessionFactory { * @param config * to use */ - void setConfig(OpenSshConfig config) { + synchronized void setConfig(OpenSshConfig config) { this.config = config; } }