diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-23 17:54:39 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 22:06:12 +0200 |
commit | 7092803ad282776be952ab749143d44ed40e5e2f (patch) | |
tree | fd88cc53b59054fad24151d0c46a4ecce7249f7e /org.eclipse.jgit | |
parent | d5bcf199c7650829850689fb5e8b7172ec5ab5ee (diff) | |
download | jgit-7092803ad282776be952ab749143d44ed40e5e2f.tar.gz jgit-7092803ad282776be952ab749143d44ed40e5e2f.zip |
Add comment why protocol list uses WeakReference
Change-Id: I997933cbf1bcae94a6edd9db58c25ec1bb96445f
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java index 271f462aa6..50eca21c66 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java @@ -76,6 +76,7 @@ public abstract class Transport implements AutoCloseable { PUSH; } + // Use weak references to enable unloading dynamically loaded protocols private static final List<WeakReference<TransportProtocol>> protocols = new CopyOnWriteArrayList<>(); |