summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-23 17:54:39 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 22:06:12 +0200
commit7092803ad282776be952ab749143d44ed40e5e2f (patch)
treefd88cc53b59054fad24151d0c46a4ecce7249f7e /org.eclipse.jgit
parentd5bcf199c7650829850689fb5e8b7172ec5ab5ee (diff)
downloadjgit-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.java1
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<>();