Commit graph

170 commits

Author SHA1 Message Date
d1f4c61f00
Result.onSuccess should return Result/ResultVoid (#224)
* Version set to 3.2.0

* Result{Void}.onSuccess() now returns a Result<T>/ResultVoid
2021-08-19 11:35:05 +01:00
dependabot[bot]
03b288da4c
Bump pitest-maven from 1.6.8 to 1.6.9 (#221)
Bumps [pitest-maven](https://github.com/hcoles/pitest) from 1.6.8 to 1.6.9.
- [Release notes](https://github.com/hcoles/pitest/releases)
- [Commits](https://github.com/hcoles/pitest/compare/pitest-parent-1.6.8...1.6.9)

---
updated-dependencies:
- dependency-name: org.pitest:pitest-maven
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 11:12:17 +01:00
dependabot[bot]
7890359f21
Bump spotbugs-annotations from 4.3.0 to 4.4.0 (#222)
Bumps [spotbugs-annotations](https://github.com/spotbugs/spotbugs) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.3.0...4.4.0)

---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
2021-08-19 10:51:45 +01:00
786569a995
Implement a Reader monad (#214)
* Add Reader monad

* WrapperTest: clean up

* Reader: add API status annotations

* Version set to 3.1.0

* pom: remove duplicate dependency
2021-08-18 17:00:51 +01:00
b9c990b0d7
Version set to 3.0.0 (#217) 2021-08-05 07:38:49 +01:00
dependabot[bot]
cf022e9907
Bump spotbugs-annotations from 4.2.3 to 4.3.0 (#211)
Bumps [spotbugs-annotations](https://github.com/spotbugs/spotbugs) from 4.2.3 to 4.3.0.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.2.3...4.3.0)

---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 06:58:45 +01:00
dependabot[bot]
b2826588b6
Bump apiguardian-api from 1.1.1 to 1.1.2 (#216)
Bumps [apiguardian-api](https://github.com/apiguardian-team/apiguardian) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/apiguardian-team/apiguardian/releases)
- [Commits](https://github.com/apiguardian-team/apiguardian/compare/r1.1.1...r1.1.2)

---
updated-dependencies:
- dependency-name: org.apiguardian:apiguardian-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 06:54:37 +01:00
571fd2641a
Result enhancements (#215)
* pom: don’t override java version - use LTS - JDK 11

* result: nest tests

* Add Result.{from(Either|Optional),ofVoid,ok(),onSuccess,applyOver}

* Add Result.flatApplyOver

* result: create separate documentation file

* Add Result.toEither()

* Add Result.onError - by type

* Simplify creation of Result in Result.ofVoid

* Make Result.ofVoid tolerate exceptions and no return statement

* Add missing javadoc for result.VoidCallable

* Bump pitest-junit5-plugin from 0.12 to 0.14 (#187)

* Bump tiles-maven-plugin from 2.19 to 2.20 (#188)

* Bump lombok from 1.18.18 to 1.18.20 (#189)

* Bump spotbugs-annotations from 4.2.2 to 4.2.3 (#191)

* Bump mockito-junit-jupiter from 3.8.0 to 3.9.0 (#190)

* Bump pitest-maven from 1.6.4 to 1.6.5 (#192)

* Bump pitest-maven from 1.6.5 to 1.6.6 (#194)

* Bump tiles-maven-plugin from 2.20 to 2.21 (#195)

* Bump mockito-junit-jupiter from 3.9.0 to 3.10.0 (#196)

* Bump junit-bom from 5.7.1 to 5.7.2 (#197)

* Bump tiles-maven-plugin from 2.21 to 2.22 (#198)

* Bump pitest-maven from 1.6.6 to 1.6.7 (#199)

* Bump mockito-junit-jupiter from 3.10.0 to 3.11.0 (#200)

* Bump assertj-core from 3.19.0 to 3.20.0 (#202)

* Bump mockito-junit-jupiter from 3.11.0 to 3.11.1 (#201)

* Bump assertj-core from 3.20.0 to 3.20.1 (#203)

* Bump tiles-maven-plugin from 2.22 to 2.23 (#204)

* Bump assertj-core from 3.20.1 to 3.20.2 (#205)

* Bump mockito-junit-jupiter from 3.11.1 to 3.11.2 (#206)

* Upgrade to GitHub-native Dependabot (#193)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>

* Create dependabot.yml (#207)

* Bump actions/setup-java from 1 to 2.1.0 (#210)

* Bump actions/setup-java from 1 to 2.1.0

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 2.1.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update build-maven.yml

* Update deploy-sonatype.yml

* Update build-maven.yml

* Update build-maven.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>

* Bump release-drafter/release-drafter from 5.14.0 to 5.15.0 (#209)

Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5.14.0...v5.15.0)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>

* Add ResultVoid special Result type

- Result now extends ThrowableFunctor allowing mapping functions to throw exceptions
- Added ResultVoid to replace the usage of Result<Void> and handle void cases better
- Add `flatMapV` and `andThenV` which return ResultVoid

* result: Migrate static constructor docs to javadoc

* result.Result: move static constructors to top of class

* result: add docs and tests for from(Maybe) and from(Either)

* pom: add apigaurdian dependency

* Remove migrated docs

* result: add missing api status

* result.Result: group static methods together in file

* result.Result: reorder static methods

* result.Result: deprecate static maybe methods that don’t include Maybe in name

* result.Result.toMaybe: update docs and tests

* fix up toMaybe example

* result.Result.flatMapMaybe: update docs and tests

* result.Result.applyOver(Stream,Consumer): updated docs and tests

* result.Result.applyOver: update docs and tests

* result.Result: fix bad javadoc encoding

* result.Result.flatMapApply: update docs and tests

* result.Result.error(Class, Throwable): added

* result.Result: suppress warning on long class

* result.Result: apply warning supression to entire interface

* result.Result.toEither: update docs and tests

* result.Result.err: deprecate

* [BREAKING] result.Result.err: removed

* [BREAKING] result.Result.result: remove method

* [BREAKING] result.Result.success: remove method

* result.Result.orElseThrow: update docs and tests

* result.Result.toVoid: add javadoc and test

* result.Result.map: update docs and tests

* result.Result.map: add api status

* result.Result.isError: update docs and test

* result.Result.isError: update docs and test

* result.Result.isOkay: update docs and test

* result.Result.onError: update docs and test

* result.Result.onError: update docs and tests

* result.Result: tidy up and add some API statuses

* result.Result.orElseThrowUnchecked: update docs and tests

* result.Result.orElseThrow: update docs and tests

* result.Result.maybe: removed

* result.Result.thenWith: update docs and test

* result.Result.peek: update docs and tests

* result.Result.recover: update docs and tests

* result.Result.match: update docs and tests

* result.Result.andThen: deprecate in favour of map

* result.Result.flatMap: update docs and tests

* Update link to documentation for Result

* result.Result.flatMapV: add docs and test

* result.Result.match: update docs

* result.Result.onSuccess: update docs

* result.Result.reduce: mark experimental

* pom: remove java.version (conflict resolution mistake)

* Result: add deprecation annotations

* result.Err: remove unused imports

* result.BaseResult: extract interface

* result.ResultVoid.match: add javadoc

* result.ResultVoid: regroup tests and add javadoc for recover and onSuccess

* result.ResultVoid.onError: update docs and tests

* result.Err.andThen: don't create new object needlessly

* result.ResultVoid.andThen: add javadoc and update tests

* result.ResultVoid.inject: on error returns new exception, update docs and tests

* result.Result.error: suppress false positive unused parameter warning

* result.Success.getInstance added

* ErrVoid: fix toString

* SuccessVoid: break circular dependency

* Err: break circular dependency

* Result.result: added

* Success: break cyclic dependency

* Result.result: add javadoc and test

* Result.result: reuse static of(…)

* github/dependabot: clean up

* github/workflow: remove unused graphviz

* github/workflow: drop java  support

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 06:49:32 +01:00
dependabot[bot]
447cb07fc4
Bump pitest-maven from 1.6.7 to 1.6.8 (#212)
Bumps [pitest-maven](https://github.com/hcoles/pitest) from 1.6.7 to 1.6.8.
- [Release notes](https://github.com/hcoles/pitest/releases)
- [Commits](https://github.com/hcoles/pitest/commits)

---
updated-dependencies:
- dependency-name: org.pitest:pitest-maven
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-30 09:08:03 +01:00
dependabot-preview[bot]
33e7a1042a
Bump mockito-junit-jupiter from 3.11.1 to 3.11.2 (#206) 2021-06-22 05:17:14 +00:00
dependabot-preview[bot]
bbf8180e59
Bump assertj-core from 3.20.1 to 3.20.2 (#205) 2021-06-21 05:17:00 +00:00
dependabot-preview[bot]
a43888d19e
Bump tiles-maven-plugin from 2.22 to 2.23 (#204) 2021-06-17 05:22:57 +00:00
dependabot-preview[bot]
8a62691053
Bump assertj-core from 3.20.0 to 3.20.1 (#203) 2021-06-17 05:18:16 +00:00
dependabot-preview[bot]
2946b5f2b1
Bump mockito-junit-jupiter from 3.11.0 to 3.11.1 (#201) 2021-06-16 05:47:13 +00:00
dependabot-preview[bot]
1d38a0cf3d
Bump assertj-core from 3.19.0 to 3.20.0 (#202) 2021-06-16 05:42:27 +00:00
dependabot-preview[bot]
f4011f732e
Bump mockito-junit-jupiter from 3.10.0 to 3.11.0 (#200) 2021-06-04 05:21:06 +00:00
dependabot-preview[bot]
214e72584b
Bump pitest-maven from 1.6.6 to 1.6.7 (#199) 2021-06-04 05:17:21 +00:00
dependabot-preview[bot]
ed1373d24d
Bump tiles-maven-plugin from 2.21 to 2.22 (#198) 2021-05-20 05:16:54 +00:00
dependabot-preview[bot]
e813acc4b6
Bump junit-bom from 5.7.1 to 5.7.2 (#197) 2021-05-17 05:16:51 +00:00
dependabot-preview[bot]
f443afe8d6
Bump mockito-junit-jupiter from 3.9.0 to 3.10.0 (#196) 2021-05-13 05:16:15 +00:00
dependabot-preview[bot]
1f5203c47f
Bump tiles-maven-plugin from 2.20 to 2.21 (#195) 2021-05-07 05:15:26 +00:00
dependabot-preview[bot]
7b77d00cd9
Bump pitest-maven from 1.6.5 to 1.6.6 (#194) 2021-04-30 05:15:39 +00:00
dependabot-preview[bot]
f2e739d968
Bump pitest-maven from 1.6.4 to 1.6.5 (#192) 2021-04-22 05:24:56 +00:00
dependabot-preview[bot]
fa34cb2728
Bump mockito-junit-jupiter from 3.8.0 to 3.9.0 (#190) 2021-04-19 05:27:15 +00:00
dependabot-preview[bot]
8821b006a7
Bump spotbugs-annotations from 4.2.2 to 4.2.3 (#191) 2021-04-19 05:23:14 +00:00
dependabot-preview[bot]
b1d0f1039f
Bump lombok from 1.18.18 to 1.18.20 (#189) 2021-04-02 05:18:45 +00:00
dependabot-preview[bot]
b020577600
Bump tiles-maven-plugin from 2.19 to 2.20 (#188) 2021-03-29 05:34:56 +00:00
dependabot-preview[bot]
93b9404f9c
Bump pitest-junit5-plugin from 0.12 to 0.14 (#187) 2021-03-22 05:26:16 +00:00
a7ad6a3497
Readme: add missing links and brief descriptions (#184)
* Readme: add missing links and brief descriptions

* Update description

* Readme: fix typo

* Readme: add docs for Combinators and fix typos
2021-03-14 19:49:46 +00:00
dependabot-preview[bot]
d207fec8d5
Bump spotbugs-annotations from 4.1.2 to 4.2.2 (#177)
Bumps [spotbugs-annotations](https://github.com/spotbugs/spotbugs) from 4.1.2 to 4.2.2.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.1.2...4.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
2021-03-14 15:20:48 +00:00
5737e11395
Bump kemitix-maven-tiles to 3.0.0 and kemitix-checkstye to 5.5.0 (#181)
* Bump kemitix-maven-tiles to 3.0.0

* Bump kemitix-maven-tiles to 3.0.1

* Bump kemitix-checkstyle to 5.5.0

* Docs updates - more to come

* Checkstyle and PMD compliance updates

* result: map on Success should become Error on exception

* README: reformat in markdown
2021-03-14 15:15:50 +00:00
a501c506a4
Add Wrapper (#179)
* Update copyright year

* Alias: added

* bump release-drafter from 5.11.0 to 5.14.0

* Version set to 2.3.0

* Rename Alias as Wrapper and drop map method

Simplify tests.
2021-03-12 20:28:38 +00:00
dependabot-preview[bot]
19e3a06ac2
Bump pitest-maven from 1.6.3 to 1.6.4 (#178) 2021-03-12 05:17:34 +00:00
dependabot-preview[bot]
603cdc3e73
Bump mockito-junit-jupiter from 3.7.7 to 3.8.0 (#176) 2021-02-23 05:21:29 +00:00
dependabot-preview[bot]
481c5aae46
Bump pitest-maven from 1.6.2 to 1.6.3 (#175) 2021-02-17 05:17:01 +00:00
dependabot-preview[bot]
8842c0da9a
Bump junit-bom from 5.7.0 to 5.7.1 (#174) 2021-02-05 05:18:11 +00:00
dependabot-preview[bot]
5bc59666fe
Bump lombok from 1.18.16 to 1.18.18 (#172) 2021-01-29 05:15:49 +00:00
dependabot-preview[bot]
e2f2806794
Bump assertj-core from 3.18.1 to 3.19.0 (#171) 2021-01-25 05:19:54 +00:00
dependabot-preview[bot]
0f87468684
Bump mockito-junit-jupiter from 3.7.0 to 3.7.7 (#170) 2021-01-18 05:37:23 +00:00
dependabot-preview[bot]
6d1c8a92da
Bump mockito-junit-jupiter from 3.6.28 to 3.7.0 (#169) 2021-01-05 05:19:31 +00:00
dependabot-preview[bot]
c396a53cff
Bump pitest-maven from 1.6.1 to 1.6.2 (#168) 2021-01-01 05:17:42 +00:00
dependabot-preview[bot]
6ae70ea7a5
Bump tiles-maven-plugin from 2.18 to 2.19 (#167) 2020-12-11 05:17:35 +00:00
dependabot-preview[bot]
54d69cf0ab
Bump pitest-maven from 1.5.2 to 1.6.1 (#166) 2020-12-09 05:17:19 +00:00
dependabot-preview[bot]
ef4d96dc7f
Bump mockito-junit-jupiter from 3.6.0 to 3.6.28 (#164) 2020-11-25 05:16:54 +00:00
dependabot-preview[bot]
699fce407e
Bump assertj-core from 3.18.0 to 3.18.1 (#163) 2020-11-12 05:16:57 +00:00
dependabot-preview[bot]
d05d71e422
Bump mockito-junit-jupiter from 3.5.15 to 3.6.0 (#162) 2020-10-27 05:16:46 +00:00
dependabot-preview[bot]
fb4f7eacc1
Bump tiles-maven-plugin from 2.17 to 2.18 (#156) 2020-10-26 05:37:47 +00:00
dependabot-preview[bot]
b7f803dd50
Bump lombok from 1.18.12 to 1.18.16 (#159) 2020-10-26 05:33:07 +00:00
dependabot-preview[bot]
d563ffe1f2
Bump mockito-junit-jupiter from 3.5.13 to 3.5.15 (#160) 2020-10-26 05:28:21 +00:00
dependabot-preview[bot]
a0eb77c31a
Bump assertj-core from 3.17.2 to 3.18.0 (#161) 2020-10-26 05:22:12 +00:00