There's no need to clear the server reference - if the channel has
been removed then it will be eligible for GC. If the whole server
is going then the whole group of objects will be eligible for GC.
Update to latest version of findbugs and depend on jsr305 to get
@Nonnull annotation and apply it to the methods which are now
guaranteeing non-null returns.
Change-Id: Ibdcf43e64910440ba5efeb7e090edb72afd858e3
Reviewed-on: http://gerrit.dmdirc.com/2982
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
Add some caching of IconManagers to combat issue #CLIENT-419 somewhat until we have a real fix.
With this code, starting up my test DMDirc (which loads a global window, and attempts to connect to a twitter:// server with a raw window) goes from creating to 30 IconManagers on startup and 4 every reconnect, to 8 on startup and none when reconnecting which is a start at least.
Change-Id: I9523a0165731bf294cb874ad9e088413d17882b8
Reviewed-on: http://gerrit.dmdirc.com/2972
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Fix URIParser (has apparently been broken forever).
Add unit tests URI Parser.
Change-Id: I329f958024f70288f42862c02f9b2d7a4ff072ea
Reviewed-on: http://gerrit.dmdirc.com/2967
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
Doesn't make much sense having things calling static methods on a
random command.
This removes the long-deprecated "--ssl" flag for the newserver
command.
Change-Id: Ie75658c3bcf5c495dcc8b0548f080e1a12ac4a52
Reviewed-on: http://gerrit.dmdirc.com/2966
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Use Guava's Preconditions instead, which throw appropriate exceptions
rather than AssertionErrors (whose idea was that?!)
Also fix weirdness in CommandArguments where start was allowed to be
1 greater than end when getting words.
Change-Id: Icce38e36da6507f645fb8b3b872dfe2c60c43ea7
Reviewed-on: http://gerrit.dmdirc.com/2961
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
plugins:
6f293a1 Chris Smith <chris@dmdirc.com>
Use the event bus for ClientOpened events.
Add Guava as a build-time dependency for plugins.
Gerrit: http://gerrit.dmdirc.com/2959
Change-Id: Ibda3afac0bca4aca08cef2d62330fed1d60d19ee
Swing UI + Apple is too tangled up to do it using nice DI atm :(
Change-Id: Ie06dc705e78b6475cda01cfc1850dcb732ebcdcc
Reviewed-on: http://gerrit.dmdirc.com/2957
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Don't include all libs on the CP when running.
Put the main libraries first, rather than letting plugins trash the classpath.
Change-Id: I0b048a603ba4c854370807c6ae89c5a400423686
Reviewed-on: http://gerrit.dmdirc.com/2953
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
plugins:
5138fca Chris Smith <chris@dmdirc.com>
FrameContainers now expose Connections.
Depends-On: I02a54b0bcfaef08d5757cc015c356f9779ec0371
Gerrit: http://gerrit.dmdirc.com/2949
Change-Id: Ie706661b324006fe70cece9f7c986574251f8920
Anywhere that doesn't just work with a Connection, cast back to a Server for
now. These can be tidied up later.
Change-Id: I02a54b0bcfaef08d5757cc015c356f9779ec0371
Depends-On: Id55c3611173be7ed79fae8f9e976996d713b8646
Reviewed-on: http://gerrit.dmdirc.com/2950
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Move Updater-based providers into a separate module, and inject
the actual dependencies into the DMDircUpdateManager instead of
various 2nd degree dependencies so it can make them itself.
This should make it easier to add other strategies/download
sites/etc.
Change-Id: Id8a7871fbf7d383b05c5fd08e31dea3bd3703444
Reviewed-on: http://gerrit.dmdirc.com/2932
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Why throw a ClassNotFoundException that the caller is expecting,
when you can completely break the ClassLoader contract and return
null? YAY. </snark>
Change-Id: I1d2aff71db8d0efde8d15f87e50edad962a2c52b
Reviewed-on: http://gerrit.dmdirc.com/2931
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>