Chris Smith
5a7e341907
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
пре 8 година
Chris Smith
090894f468
Add @WillClose annotations.
пре 9 година
Chris Smith
600e25379a
Remove unused method.
пре 9 година
Greg Holmes
8e7b44b689
Delete SimpleInjector.
пре 9 година
Greg Holmes
09c1b0a700
Add some validator unit tests.
пре 9 година
Greg Holmes
6851b90fa8
Add a Link unit test.
пре 9 година
Greg Holmes
32cb1129d9
Remove DoubleMap.
пре 9 година
Greg Holmes
39d3a60ef3
Remove unused class.
пре 9 година
Chris Smith
e7c2ff7d8f
Remove WeakList et al.
пре 9 година
Greg Holmes
47101951d4
Add a TriConsumer.
пре 9 година
Chris Smith
93a13422d1
Put MapList to rest.
ConfigFile can manually do it - it's not that much more work.
Everything in DMDirc has been moved to use Guava's Multimap.
пре 9 година
Greg Holmes
b64a5ad189
Improve TextFile unit test, and delete unused ctor.
пре 9 година
Chris Smith
8bddf20087
Add a couple of trivial tests.
пре 9 година
Greg Holmes
c4499517d3
Remove compile time warnings.
пре 9 година
Shane Mc Cormack
eb2bfe4c84
2015!
пре 9 година
Greg Holmes
c360bd8afd
Remove unused constructors in ConfigFile.
пре 9 година
Greg Holmes
20608b13fc
Tidy up TextFile a bit.
пре 9 година
Greg Holmes
fdabe904f0
Use Streams in TextFile.
пре 9 година
Greg Holmes
d51ed35a4e
Generic class for functions.
пре 9 година
Greg Holmes
856bdeaec8
Add unit test.
пре 9 година
Greg Holmes
e91abf5d35
Move indeterminate setting into listening stream.
пре 9 година
Greg Holmes
0b1b21f957
Add URL Encoding back.
пре 9 година
Greg Holmes
4dde7c5d86
Re-add listener support.
пре 9 година
Greg Holmes
c7d9420b9a
Tidy up downloader.
пре 9 година
Greg Holmes
b699f94261
Delete some StreamUtils.
пре 9 година
Greg Holmes
f84c8a1b16
Hack FileUtils to provide copycontents methods.
пре 9 година
Chris Smith
b5256854b7
Add method to FileUtils to get a Path.
This maintains a FileSystem pointing at the jar the application is
running from, which can be used to get Paths for bundled resources.
пре 9 година
Greg Holmes
a9aa3e869f
Switch to Java8 methods for TextFile.
пре 9 година
Greg Holmes
37cd0144e7
Simplify a little.
пре 9 година
Greg Holmes
06ff6a463b
Add a function based validator.
пре 9 година
Chris Smith
4679e71dbe
Remove deprecated method.
пре 9 година
Greg Holmes
6fff51e089
Correct hashcode method.
пре 9 година
Greg Holmes
807572c8fc
Tidying
пре 9 година
Greg Holmes
7305fae38d
Add JSR305
Use @Nonnull
пре 9 година
Chris Smith
fba5088719
Start work on a generic link extractor.
At the moment this just implements the first step of the Styliser's
link detection. It doesn't apply any of the "intelligent" corrections.
пре 9 година
Chris Smith
0e02c175f6
Add StringUtils class + tests.
These are from the TextPane, but seem fairly general purpose.
Change-Id: Ic119eb461a365b4f7050715c6bc0abd5c034e57c
Reviewed-on: http://gerrit.dmdirc.com/4081
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Greg Holmes
c0e532e93e
Add a couple of methods to determine how an application was launched.
Change-Id: I20d3a7b908bbeae833ffffe0598b99bde47021c7
Reviewed-on: http://gerrit.dmdirc.com/4073
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Greg Holmes
57bcea0572
Hide StreamReader behind StreamUtils.
Change-Id: Ia24b29f2fcd414d7b27bad52cc6fad6312179de5
Reviewed-on: http://gerrit.dmdirc.com/4067
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 9 година
Chris Smith
93594b6bd6
Remove pointless method.
Sockets are closeable now. Woo.
Change-Id: I1d58c907dd38e515b25273685d37e3650c03042f
Reviewed-on: http://gerrit.dmdirc.com/4065
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Greg Holmes
60e9f7d9cd
Remove deprecated methods.
Change-Id: I5ad29260862e3e9983a7031549bb5e6296551859
Reviewed-on: http://gerrit.dmdirc.com/4055
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 9 година
Chris Smith
9d279109f1
Fix copying resources from zip files.
FileSystems aren't as automatic as I expected :(
Change-Id: I5fe47086e86e3812dfa463bf1125ae02d1df3633
Reviewed-on: http://gerrit.dmdirc.com/4062
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Greg Holmes
aad1578811
Unit test for Downloader
Change-Id: I3b054eb2144f51bc0b5935ee24525616dc042a4e
Reviewed-on: http://gerrit.dmdirc.com/4047
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
f6b56531d3
Make ReverseFileReader autocloseable.
Because why not?
Change-Id: I996ff53c4bb7bd0d237691c260ed7dc55e6499fa
Reviewed-on: http://gerrit.dmdirc.com/4048
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Greg Holmes
87e3c1343d
Make ReverseFileReader use Paths.
Change-Id: I921a395e088846216650d1ac14207cb915a6bb8c
Reviewed-on: http://gerrit.dmdirc.com/4045
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
пре 9 година
Chris Smith
2b76d27c6f
Couple of bug fixes.
Don't try and resole using a path from another FS provider.
Create paths via URIs not via strings, as otherwise it gets
confused with protocols.
Change-Id: Ibb33317ee9ce8d1567535e464c8f59667ea5e65a
Reviewed-on: http://gerrit.dmdirc.com/4043
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
76ba1d77e2
Add FileUtils.
Not tested or used yet :)
Change-Id: If34cc6520c3d05ed33c6d82eac2e2fbcba99a688
Reviewed-on: http://gerrit.dmdirc.com/4042
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
397bc5d06b
Unused methods
Change-Id: I17a4c8320988fd24250eeee6cab1229b9c9a2279
Reviewed-on: http://gerrit.dmdirc.com/4012
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
пре 9 година
Chris Smith
5b7f3a9358
Allow ConfigFile to work on Paths.
Apply a bunch of style fixes.
Change-Id: I314e09dcebabcce452881754ef370c2495692030
Reviewed-on: http://gerrit.dmdirc.com/4000
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
18b3adddbc
Add an alternative formatter.
Formatting durations as 'XX:YY' is fairly common and repeated
in nearly all the nowplaying sources. Make a util method instead.
Change-Id: I8663a0ff5da7a17d7d47cf10e5b0e74722671b46
Reviewed-on: http://gerrit.dmdirc.com/3986
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година
Chris Smith
4ec0f9f35d
Tidy
Change-Id: Ie04cdf734db3b8bb0e065c554ced7c1ea2600fb2
Reviewed-on: http://gerrit.dmdirc.com/3943
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
пре 9 година