Commit graph

110 commits

Author SHA1 Message Date
Paul Campbell 342e682aff
Remove deprecated junit-platform-surefire-provider (#41)
* Remove deprecated junit-platform-surefire-provider

* [jenkins] re-enable jdk 11 and 12 test builds

jdk 13 is incompatible due to a transiative incompatibility in
spotbugs plugin from kemitix-maven-tiles.

* GitDBBranch: add accessor for name
2019-01-27 17:56:46 +00:00
Paul Campbell 02e940ac5f
Bump kemitix maven tiles from 0.9.0 to 2.1.3 (#40)
* Bump kemitix-maven-tiles from 0.9.0 to 2.1.3

* Fix spotbugs error RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE

[ERROR] Nullcheck of directoryStream at line 88 of value previously
dereferenced in
net.kemitix.gitdb.impl.InitGitDBRepo.lambda$ifExistsThenIsEmpty$2(File,
File) [net.kemitix.gitdb.impl.InitGitDBRepo,
net.kemitix.gitdb.impl.InitGitDBRepo] At InitGitDBRepo.java:[line
88]Redundant null check at InitGitDBRepo.java:[line 90]
RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE
2019-01-26 18:44:45 +00:00
Paul Campbell c18fa1d147 Update ti use mon 0.12.0 API for Result 2018-09-02 19:20:08 +00:00
Paul Campbell f30eb5f334 Use non-SNAPSHOT versions of mon and conditional 2018-08-30 22:26:22 +01:00
Paul Campbell a20c5b064e KeyRemover: minor renaming of lambda variable 2018-07-21 23:23:45 +01:00
Paul Campbell c75204c676 Mon.invert renamed to swap 2018-07-21 23:23:02 +01:00
Paul Campbell 3789afb824 KeyRemover.remove: refactor - rename GitTreeReader.stream as entries 2018-07-21 08:10:19 +01:00
Paul Campbell 7f8dde5bd3 HeadWriter: refactored 2018-07-20 07:47:18 +01:00
Paul Campbell 058572ab91 HeadWriter: avoid the Law of Demeter 2018-07-20 07:36:58 +01:00
Paul Campbell 23b9caebf5 KeyRemoved.flatIfFound refactored to use conditional 2018-07-20 07:27:02 +01:00
Paul Campbell 0a24a399aa Upgrade mon to 0.11.0 2018-07-20 07:26:51 +01:00
Paul Campbell 297a952f43 InitGitDBRepo: refactored 2018-07-19 17:26:45 +01:00
Paul Campbell 2f68bd55d0 GitTreeReader.stream: refactor for readability 2018-07-11 07:10:49 +01:00
Paul Campbell 330e87b6a1 InitGitDBRepo.create: add missing javadoc @return 2018-07-10 22:56:27 +01:00
Paul Campbell a9a6eeb01e Parameters are final 2018-07-10 22:56:14 +01:00
Paul Campbell 436a3e2501 LocalGitDBImpl.branch: rewrite without try/catch block 2018-07-10 22:52:16 +01:00
Paul Campbell 32027ef6e1 NamedRevBlob.blobAsString: rewrite without try/catch block 2018-07-10 22:22:20 +01:00
Paul Campbell 20e6ba3f84 KeyRemover.insertTree: rewrite without try/catch block 2018-07-10 22:19:51 +01:00
Paul Campbell 88bbfd428b InitGitDBRepo.create: rewrite to use new Result methods 2018-07-10 22:16:13 +01:00
Paul Campbell fd0109e490 GirDBRepo fix syntax error 2018-07-08 06:44:35 +01:00
Paul Campbell fd70dbacc3 GitDBTest clean up tests throwing exceptions 2018-06-30 21:08:12 +01:00
Paul Campbell d1acd4a0dc HeadWriter returns Result<T> values 2018-06-30 21:05:38 +01:00
Paul Campbell c4034a291f InitGitDBRepo return Result<T> values 2018-06-30 21:02:09 +01:00
Paul Campbell ae852be86f CommitWriter and GitDBRepo return Result<T> values 2018-06-30 20:47:00 +01:00
Paul Campbell 9eff624a05 More classes return Result<T> values 2018-06-30 20:37:32 +01:00
Paul Campbell 98b81a44dc NamedRevBlob returns Result<T> values 2018-06-30 13:14:21 +01:00
Paul Campbell 2de83ba3bc Refactoring GitDBTest 2018-06-30 13:14:21 +01:00
Paul Campbell f5483f419b GitDBBranch returns Result<T> values 2018-06-30 13:14:15 +01:00
Paul Campbell 193a0f380b GitDB returns Result<T> values 2018-06-30 13:11:52 +01:00
Paul Campbell 63d0078be5 FormatVersion: make private final int fields static 2018-06-21 07:29:18 +01:00
Paul Campbell a520b91bb9 Move constants from interface to a class 2018-06-21 07:25:46 +01:00
Paul Campbell b10da3eac6 Remove redundant final in try-with-resources 2018-06-21 06:49:22 +01:00
Paul Campbell b4e6cee636 Use try-with-resources for closables 2018-06-20 22:16:22 +01:00
Paul Campbell 88452071f8 Remove transactions - bare git repos don't support merging
May reconsider this at some point using a clone of the bare repo.
2018-06-16 12:34:29 +01:00
Paul Campbell 27d7bbb6d3 When closing the transaction with no additional commits then the base GirDBBranch is returned 2018-06-15 21:46:48 +01:00
Paul Campbell 91d0f5817d Refactor: inline methods 2018-06-15 20:26:39 +01:00
Paul Campbell 8f044e6b77 Extract HeadWriter 2018-06-15 19:26:02 +01:00
Paul Campbell 9b8c4765ae Reduce method count for GitDBBranch 2018-06-15 19:20:34 +01:00
Paul Campbell 58daa2a6a6 Add missing javadoc and update parameter names and remove bp constructor 2018-06-15 19:13:31 +01:00
Paul Campbell 53596f4254 When start a named transaction in a transaction then a new transaction is created 2018-06-15 19:06:14 +01:00
Paul Campbell c01936e55f When start an anonymous transaction in a transaction then a new transaction is created 2018-06-15 19:04:08 +01:00
Paul Campbell cdd35e8008 When get key/value in a transaction then the value is returned 2018-06-15 18:58:53 +01:00
Paul Campbell c506802224 When get format version in transaction then the version is the same 2018-06-15 18:53:50 +01:00
Paul Campbell 791f82e16f When removing a key in a transaction then the transaction branch no longer finds it 2018-06-15 18:48:42 +01:00
Paul Campbell cd700c0130 When removing a key in a transaction then the original GitDbBRanch still finds it 2018-06-15 18:45:26 +01:00
Paul Campbell 0e5d5d4a31 When putting an existing key/value pair then the original GitDbBranch finds the original value 2018-06-15 18:41:09 +01:00
Paul Campbell 1a65fb9123 When starting an anonymous transaction then transaction starts on the same commit 2018-06-15 18:38:34 +01:00
Paul Campbell 71bb51c729 When starting an anonymous transaction then original branch is unchanged 2018-06-15 18:34:10 +01:00
Paul Campbell 53e1fd394b Refactor GitTreeReader 2018-06-15 18:20:05 +01:00
Paul Campbell dc932d8b1d Simplify a test 2018-06-15 17:54:47 +01:00