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
Gary Gregory
c1bd1e50a9
Remove extra whitespace
2023-10-12 12:04:10 -04:00
Gary Gregory
8b34dab449
Add LazyInitializer.isInitialized()
2023-10-12 12:01:56 -04:00
Gary Gregory
bc4eeca21b
Fix description
2023-10-12 11:09:40 -04:00
Gary Gregory
152c7204a0
Fix XML
2023-10-12 11:09:07 -04:00
Gary Gregory
26becc120c
Javadoc
2023-10-12 09:25:48 -04:00
Gary Gregory
bc8a81eab0
Add LazyInitializer tests
2023-10-12 09:12:10 -04:00
Gary Gregory
a4fc02f69d
ConcurrentInitializer extends FailableSupplier<T, ConcurrentException>
2023-10-12 09:08:43 -04:00
Gary Gregory
74789683ee
Javadoc
2023-10-12 08:47:53 -04:00
Gary Gregory
c4d5e6f2c3
Normalize mvn invocation on GitHub
2023-10-11 07:46:36 -04:00
Gary Gregory
30dc88fd77
Make private static classes final
2023-10-10 21:22:24 -04:00
Gary Gregory
e0eb99198c
Bump commons-parent
2023-10-10 17:16:53 -04:00
Gary Gregory
d4ebf9abcc
Fix Checkstyle
...
[INFO] There are 4 errors reported by Checkstyle 10.12.4 with
src/site/resources/checkstyle/checkstyle.xml ruleset.
[ERROR] src\main\java\org\apache\commons\lang3\StringUtils.java:[1869,92]
(whitespace) WhitespaceAfter: '...' is not followed by whitespace.
[ERROR] src\main\java\org\apache\commons\lang3\time\FastDatePrinter.java:[1454,13]
(whitespace) WhitespaceAfter: 'switch' is not followed by whitespace.
[ERROR] src\test\java\org\apache\commons\lang3\time\FastDateFormatTest.java:[285,17]
(whitespace) WhitespaceAfter: 'synchronized' is not followed by
whitespace.
[ERROR] src\test\java\org\apache\commons\lang3\time\FastDateFormatTest.java:[292,17]
(whitespace) WhitespaceAfter: 'synchronized' is not followed by
whitespace.
2023-10-10 15:39:05 -04:00
Gary Gregory
8b5ce4070f
Use Checkstyle to validate import order
2023-10-09 10:34:39 -04:00
Gary Gregory
7be4557a8e
Fix ThresholdCircuitBreaker#checkState() #1100
2023-10-07 10:40:00 -04:00
yichinzhu
b55d278cce
Fix ThresholdCircuitBreaker ( #1100 )
...
* Fix ThresholdCircuitBreaker checkState bug
According to the document, checkState() should return `true` if the circuit breaker is currently closed。
* Update ThresholdCircuitBreakerTest.java
Fix threshold circuitbreaker unit test
2023-10-07 10:38:10 -04:00