mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Refactor FileTransfer(Manager|Negotiator)
to use WeakHashMaps and extend Manager. SMACK-579
This commit is contained in:
parent
fdaf7940fb
commit
09425609af
8 changed files with 66 additions and 133 deletions
|
@ -23,6 +23,9 @@ public abstract class Manager {
|
|||
final WeakReference<XMPPConnection> weakConnection;
|
||||
|
||||
public Manager(XMPPConnection connection) {
|
||||
if (connection == null) {
|
||||
throw new IllegalArgumentException("XMPPConnection must not be null");
|
||||
}
|
||||
weakConnection = new WeakReference<XMPPConnection>(connection);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue