Commit Graph

7666 Commits

Author SHA1 Message Date
Sebb efd3d613e2 Use Matchers for more detail on error
Also fix several range errors:
lower value is inclusive, upper is exclusive
(except where the two values are equal!)
2023-10-22 15:58:00 +01:00
Sebb 201f0946c0 Javadoc clarification
[skip ci]
2023-10-22 15:29:37 +01:00
Sebb 9a778293c3 Javadoc clarification
[skip ci]
2023-10-22 15:25:15 +01:00
Sebb f79325551a Use Matchers for more detail on error 2023-10-22 15:20:12 +01:00
Sebb d18dd5904b Checkstyle nit 2023-10-22 12:43:58 +01:00
Sebb 92a51953ec Use Matchers for more detail on error
Also fix order of expected/actual in comparisons
2023-10-22 12:34:50 +01:00
Sebb be417ff07f Can take more than 1900 ms; seen 1997 2023-10-21 22:57:13 +01:00
Sebb 721bb4f78a Show why the test failed 2023-10-21 22:42:24 +01:00
Gary Gregory 9a98475131 ConcurrentInitializer implementations can now be instantiated and
configured with allocation and release lambdas
2023-10-21 14:43:13 -04:00
Sebb 2e876a8757 Fix up GHA badges 2023-10-21 17:17:45 +01:00
Gary Gregory c1fe726872
Update critical value for chi-square test #1125 2023-10-20 17:24:01 -04:00
Alex Herbert d82d465170
Update critical value for chi-square test (#1125) 2023-10-20 17:23:01 -04:00
Gary Gregory 29f3678bde Remove trailing whitespace 2023-10-20 15:30:21 -04:00
Gary Gregory 181ba18528 @deprecated in package info files generates a warning in Java 21 2023-10-20 15:24:58 -04:00
Gary Gregory 9840b9df57 Try to fix random failures in StopWatchTest.testStopWatchSuspend()
Watch out comparing measurements from System.currentTimeMillis() vs.
System.nanoTime()
2023-10-20 15:15:10 -04:00
Gary Gregory fc7320f981 Javadoc 2023-10-20 15:15:07 -04:00
Gary Gregory 30af124800 Javbadoc and comments 2023-10-20 14:32:32 -04:00
Gary Gregory 902b1ce39d Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2023-10-20 14:19:39 -04:00
Gary Gregory 426ebb13ee Proper Javadoc list
Internal refactoring
2023-10-20 14:19:18 -04:00
Gary Gregory 9a3809f5dc
Use ConcurrentInitializer implementations without subclassing. #1123. 2023-10-20 13:55:30 -04:00
Gary Gregory 5d146cd069
Use LazyInitializer without subclassing. (#1123)
* Use LazyInitializer without subclassing.

- Allow a Supplier for initialized object
- Allow a Consumer to close the managed object

* Allow any checked exception in the argument to supplier and consumer

* Make all impls of AbstractConcurrentInitializer concrete with builders and tests

* add tests for closer

* Use ConcurrentException as the wrapper for close

* Changes requested in code review

---------

Co-authored-by: Gary Gregory <gardgregory@gmail.com>
Co-authored-by: Benjamin Confino <benjamic@uk.ibm.com>
2023-10-20 13:53:08 -04:00
dependabot[bot] 038e016d2a
Bump actions/checkout from 4.1.0 to 4.1.1 (#1124)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2023-10-20 11:42:21 -04:00
Gary Gregory 5019cdbdb8 Javadoc 2023-10-19 07:35:55 -04:00
Gary Gregory c5d8c4f19a Better local name 2023-10-17 13:46:52 -04:00
Gary Gregory 5016994f4a Better local name 2023-10-17 13:46:32 -04:00
Gary Gregory 98b119bf79 Javadoc 2023-10-17 11:19:18 -04:00
Gary Gregory 582717de05 Sort members 2023-10-17 11:16:54 -04:00
Gary Gregory 3935fa2f19 Add ExceptionUtils.asRuntimeException(T), and deprecate rethrow(T) 2023-10-17 11:16:29 -04:00
Gary Gregory ce5522f60d Fix spelling 2023-10-17 10:48:51 -04:00
Gary Gregory 1abc85cb2d Add ExceptionUtils.throwUnchecked(T) where T extends Throwable, and
deprecate Object version
2023-10-17 10:48:46 -04:00
Gary Gregory 1a45003b8b Javadoc 2023-10-17 10:17:45 -04:00
Gary Gregory f9e851690c Javadoc, no need to abbreviate in documentation 2023-10-17 08:43:46 -04:00
Gary Gregory 88879df3a9 Rename type parameter to match the stock Supplier 2023-10-16 10:36:54 -04:00
Gary Gregory 6f799a1aeb Better message for soft failure 2023-10-16 09:43:38 -04:00
Gary Gregory 6c61b0916e Add Suppliers.nul() 2023-10-16 09:16:22 -04:00
Gary Gregory 13839dae6e Add FailableSupplieSuppliersr.nul() 2023-10-16 09:14:44 -04:00
Gary Gregory 9aad0f421f Add Java 21 build to GitHub 2023-10-15 10:19:10 -04:00
Gary Gregory 4d63091bdc Reduce compiler warnings 2023-10-15 10:04:34 -04:00
Gary Gregory 3ed3ec85a3 Longer lines OK 2023-10-14 10:22:06 -04:00
Gary Gregory 712a0a8f7f Format tweak 2023-10-14 10:21:46 -04:00
Gary Gregory 186478cde7 Format tweak 2023-10-14 10:21:35 -04:00
Gary Gregory 653f389322 Add Checkstyle MissingOverride 2023-10-14 09:52:45 -04:00
Gary Gregory 3ed3e993ed Add missing @Override 2023-10-14 09:50:15 -04:00
Gary Gregory fa6b940655 Add ConcurrentInitializer#isInitialized() #1120 2023-10-14 08:07:11 -04:00
Gary Gregory 8b6ccb8632 Add ConcurrentInitializer#isInitialized() #1120 2023-10-14 08:06:55 -04:00
Benjamin Confino 02132ee97b
Add method ConcurrentInitializer#isInitialized() (#1120)
* use NO_INIT to better handle initialize returning null

* add isInitialized method to all ConcurrentInitializer classes and test

* Update AtomicInitializer.java

* Update AtomicSafeInitializer.java

---------

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2023-10-14 08:00:56 -04:00
dependabot[bot] 77973e55a1
Bump github/codeql-action from 2.22.0 to 2.22.3 (#1121)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.0 to 2.22.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](2cb752a87e...0116bc2df5)

---
updated-dependencies:
- dependency-name: github/codeql-action
  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>
2023-10-13 12:21:45 -04:00
dependabot[bot] 002e14b855
Bump ossf/scorecard-action from 2.2.0 to 2.3.0 (#1122)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](08b4669551...483ef80eb9)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  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>
2023-10-13 12:21:31 -04:00
Gary Gregory 4afdad4f1a Add Streams.failableStream(T...) 2023-10-13 10:59:10 -04:00
Gary Gregory 11d2deca1f Refactor variable ConcurrentInitializer implementations to remove
duplication of initialize() method
2023-10-12 14:04:34 -04:00