Greg Holmes
efc3439452
Use j7 methods.
Change-Id: I7304aa4392c835efa700d76676213f3294307b8f
Reviewed-on: http://gerrit.dmdirc.com/4049
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
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 yıl önce
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 yıl önce
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 yıl önce
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 yıl önce
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 yıl önce
Chris Smith
18985ede50
Add .gitreview config.
Change-Id: Iee2cffccfcb5c46e2b53784d985d3b4cfe122f2a
Reviewed-on: http://gerrit.dmdirc.com/4020
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
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 yıl önce
Chris Smith
24887407f0
Specific versions.
Change-Id: Iea36563c1cd6119e3da0b2d200ceb95d09092fd8
Reviewed-on: http://gerrit.dmdirc.com/4005
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
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 yıl önce
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 yıl önce
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 yıl önce
Chris Smith
fb6da494a3
PMD fixes
Change-Id: I348b37a14097439f8a56b0a671794410e46201ca
Reviewed-on: http://gerrit.dmdirc.com/3938
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 yıl önce
Chris Smith
35eb9e9598
Minor tidying
Change-Id: Ib15e1ec964dfc126ad28c7b8599c5696b9061535
Reviewed-on: http://gerrit.dmdirc.com/3918
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
e60809a36e
Add a repository to get the test deps from.
Tidy up .gitignore.
Change-Id: Iaab43f6e475d834644a5c18a983a24679874df52
Reviewed-on: http://gerrit.dmdirc.com/3913
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
4c937524ef
Remove all ant stuff.
Change-Id: Ic4afa11b8eaf3d9d1717c4b326db7a05caeddf27
Reviewed-on: http://gerrit.dmdirc.com/3912
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
a04d5d54cb
Force the right project name for utils.
Change-Id: I6d1d4c81bb9415266309f57cda94450058e0cd14
Reviewed-on: http://gerrit.dmdirc.com/3911
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
c200f9be65
Gradle the util project.
Change-Id: I579afbde086d5761fe3743b23f4655cb4ea5b8df
Reviewed-on: http://gerrit.dmdirc.com/3909
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
20a7b3962b
Remove redundant casts
Change-Id: I858dca60061c3e7a9f60085026c8e45d9b0b35ed
Reviewed-on: http://gerrit.dmdirc.com/3883
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 yıl önce
Greg Holmes
e57c5dfc95
Move Colour to utils.
Change-Id: I73c10f367e5972031d1c9b0871c4cb9043008bec
Reviewed-on: http://gerrit.dmdirc.com/3858
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 yıl önce
Chris Smith
7ba58d10ca
Tidying.
Remove pointless super() calls.
Remove redundant interface decs.
Remove unnecessary enum annotations.
Change .length == 0 to .isEmpty.
Change-Id: I80c52ef8c39d9fc45038921285dd85bba6b397d4
Reviewed-on: http://gerrit.dmdirc.com/3843
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 yıl önce
Chris Smith
40a3a41c2e
Final the couple of things.
Change-Id: Ib2153bdebbdbee234ba593da4ccdb7969ee23aed
Reviewed-on: http://gerrit.dmdirc.com/3838
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
a3ad26fcc8
Remove pointless inheritDocs.
Change-Id: I5f49bfd20f552f7623f56d4a382db52c1d718909
Reviewed-on: http://gerrit.dmdirc.com/3808
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Chris Smith
4edb6a6996
Tidying
Change-Id: Ib6f8bf58d07d0c23369b41e8eda94ac4a36774b7
Reviewed-on: http://gerrit.dmdirc.com/3802
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 yıl önce
Greg Holmes
30f4b1f3f2
Switch to AutoClose instead of StreamUtils.
Change-Id: I7cfa545b8524fa5fc49606bd11006c37969fd78f
Reviewed-on: http://gerrit.dmdirc.com/3792
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 yıl önce
Chris Smith
5ed0fccb52
Remove author comments.
Change-Id: Id4a3b8406f433f9054580c351a1fc35f9bcceb6d
Reviewed-on: http://gerrit.dmdirc.com/3787
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 yıl önce
Chris Smith
1f46714477
Minor tidying
Change-Id: If6e8898bb70dfc6390267a8f8066d93bf844dc0a
Reviewed-on: http://gerrit.dmdirc.com/3688
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Chris Smith
1d881ab486
Fix some redundent exceptions
Change-Id: I7ff972c3ca8eab51c20c36d88fbc57ab240184f0
Reviewed-on: http://gerrit.dmdirc.com/3684
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Greg Holmes
3796fcc88c
Add Optional email address validator.
Change-Id: Ifc8ca757700db2dd19db89715e95f6c1df15e999
Reviewed-on: http://gerrit.dmdirc.com/3613
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
7170cf601e
Make Downloader non static
Change-Id: I5200f8d84e409cb71c5f7338bca18af6de4c0726
Reviewed-on: http://gerrit.dmdirc.com/3600
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
5afbb601a6
Add basic email address validator.
Change-Id: Ia38d3a8f19f12e21bc2d933c4411cc5e886e74ab
Reviewed-on: http://gerrit.dmdirc.com/3599
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
19efd0cec9
Add license header to utils project.
Change-Id: I85ca606d0da53102aaa751f2631fdad839bed850
Reviewed-on: http://gerrit.dmdirc.com/3591
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
cc46e2a4f1
Add port validator that takes Integer
Change-Id: I4d3d94c3dc60690a958a5b2fc8534c35c1f8b61e
Reviewed-on: http://gerrit.dmdirc.com/3590
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
41dcf3b4f0
Check for null before validating again regex.
Change-Id: I7ed08f0738e581840b28851d080b06657299d55b
Reviewed-on: http://gerrit.dmdirc.com/3569
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
459368e4a1
Add integer validator.
Change-Id: If2dab9ae160c2152758ea4240175a0d928ae48c5
Reviewed-on: http://gerrit.dmdirc.com/3568
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Greg Holmes
7687baa56c
Add list not empty validator.
Change-Id: Ibc0ff0c4ba26dfe7ed577e44bffbb8f20982ba5c
Reviewed-on: http://gerrit.dmdirc.com/3559
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Chris Smith
4e6bf2d20b
Make some fields in TextFile final.
Change-Id: Ib918ce2dcad368a3d8ad14aa44d3a42bf0f4cb22
Reviewed-on: http://gerrit.dmdirc.com/3508
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Chris Smith
a48c210ddd
Allow null Files to be passed to TextFile again.
We do this for temporary configuration files which are never saved
(e.g. the addon settings). It's a bit of a kludge, but for now we
should maintain it.
Change-Id: I656b924221eded5bbd98dfa4c276ab6d43b682e0
Fixes-Issue: CLIENT-510
Reviewed-on: http://gerrit.dmdirc.com/3507
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Greg Holmes
3f4f28c3cc
Add Path support to TextFile.
Change-Id: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I9463e66dc39881bcc69b64b8900df1010683b0bc
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I4fa54ebe8f4ff93c8fc33504af66338eda01d0b8
Reviewed-on: http://gerrit.dmdirc.com/3502
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Chris Smith
e56904acef
Add a travis config.
Change-Id: I9681c38510cf9535464c20133b61190bf663070c
Reviewed-on: http://gerrit.dmdirc.com/3241
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Chris Smith
6780ea88e2
Mark temp files as deleteOnExit.
Fixes-Issue: CLIENT-453
Change-Id: Ia88e231381da2d1907c78ecccb5f7456e71adb16
Reviewed-on: http://gerrit.dmdirc.com/3195
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Chris Smith
c03aa4e53e
Add a builder for ValidatorChains.
This allows them to be created inline without using type-unsafe
varargs (albeit a bit more verbosely).
new ValidatorChain(v1, v2, ...) becomes
ValidatorChain.builder()
.addValidator(v1)
.addValidator(v2)
...
.build();
Change-Id: I6c92142bf294335419fbd16593125416dd33c74e
Reviewed-on: http://gerrit.dmdirc.com/3168
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Shane Mc Cormack
bd00847b40
Update Copyright to 2014
Change-Id: Id44b617ffa590a8562fa5f6f79eaeb55fb432075
Reviewed-on: http://gerrit.dmdirc.com/2980
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Greg Holmes
779a61d876
Java 7 conversions
Change-Id: Ib05f625f14ab2f486f0c83c47c860dd0f0ef3ba1
Reviewed-on: http://gerrit.dmdirc.com/2896
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Chris Smith
18d85e6a10
Tidying
Change-Id: If6b2a1a485ff5b3a2630b43c76422064aaa2efb7
Reviewed-on: http://gerrit.dmdirc.com/2806
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 yıl önce
Greg Holmes
162c641385
Bump to 1.7
Change-Id: I1fe662814a1c10ac392ce77002f0b63383716ac3
Reviewed-on: http://gerrit.dmdirc.com/2700
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 yıl önce
Chris Smith
3a34058a1b
"Fix" warning about varargs.
Change-Id: Iaa3cfef008653f01296d39a9f6e727752fee059a
Reviewed-on: http://gerrit.dmdirc.com/2670
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Chris Smith
527214529e
Suppress rawtypes when doing unchecked operations
Change-Id: If70f324c0a7941857036935affc34829c12ec5e3
Reviewed-on: http://gerrit.dmdirc.com/2668
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Shane Mc Cormack
48fbfe50b9
Fix LICENCE file name and add AUTHORS file.
Change-Id: I8ce625ab430d39da199a605858dfe38cc3427351
Reviewed-on: http://gerrit.dmdirc.com/2651
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 yıl önce
Greg Holmes
b4e4ee1a30
Optional validator should pass null through to inner validator.
Change-Id: I9b8ad2dca5d93dae3c656c5334ff916604d8c826
Reviewed-on: http://gerrit.dmdirc.com/2635
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
11 yıl önce