Commit Graph

7954 Commits

Author SHA1 Message Date
Gary Gregory 118652d768 Add LangCollectors.collect(Collector, T...) 2024-07-25 08:26:41 -04:00
Gary Gregory ce19ec720b Add Java 24-ea as an experimental build
- Add Java 23-ea as an experimental build
- Above is only for Ubuntu since these EAs are not on macOS 13 which we
need for Java 8
2024-07-22 09:41:46 -04:00
Gary Gregory b7be19dc9f Javadoc
Use HTML 'em' tag instead of 'i' tag
2024-07-21 11:40:50 -04:00
Gary Gregory 31e2d43859
Add Javadoc links from StopWatch to DurationUtils #1249 2024-07-20 09:06:08 -04:00
Oliver B. Fischer 13316cfcbd
Add a JavaDoc link from StopWatch to DurationUtils. (#1249)
Added a JavaDoc link from StopWatch to DurationUtils, as DurationUtils
provide similar functiontionality, which could be used in
simple use cases.
2024-07-20 09:05:06 -04:00
Gary Gregory 69e3ba4188 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2024-07-20 09:04:22 -04:00
Gary Gregory 32c93eb728 Javadoc 2024-07-20 09:04:09 -04:00
dependabot[bot] b7c24e7820
Bump github/codeql-action from 3.25.12 to 3.25.13 (#1248)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.12 to 3.25.13.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](4fa2a79536...2d790406f5)

---
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>
2024-07-19 12:04:18 -04:00
Gary Gregory 0f4dee8451 LocaleUtils.toLocale(String) cannot parse four segments 2024-07-19 11:35:33 -04:00
Gary Gregory 8f579b4f30 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2024-07-19 11:25:36 -04:00
Gary Gregory e79f81f746 Format nits 2024-07-19 11:08:08 -04:00
Gary Gregory effb8c7d3c Javadoc 2024-07-19 11:07:26 -04:00
Gary Gregory 3ebaac5c02 Format nits 2024-07-19 11:03:42 -04:00
Gary Gregory 00e530042f
[LANG-1745] RandomStringUtils.random() with a negative character index should throw IllegalArgumentException (#1247)
* Add testLang1641()

* Rename some test methods

* [LANG-1745] RandomStringUtils.random() with a negative character index
should throw IllegalArgumentException
2024-07-19 09:07:42 -04:00
Gary Gregory 892c970349 Update POM for the next version 2024-07-18 17:01:50 -04:00
Gary Gregory e32896f89e Reimplement StopWatch to use java.time 2024-07-18 17:00:28 -04:00
Gary Gregory 2630268235 Add StopWatch.getDuration() and deprecate getTime() 2024-07-18 16:26:28 -04:00
Gary Gregory 3ebd20002e Add StopWatch.getStopInstant() and deprecate getStopTime() 2024-07-18 14:34:20 -04:00
Gary Gregory f1aed3eacb Add StopWatch.getStartInstant() and deprecate getStartTime() 2024-07-18 14:30:18 -04:00
Gary Gregory 2875a65756 Add StopWatch.getSplitDuration() and deprecate getSplitTime() 2024-07-18 14:24:24 -04:00
Gary Gregory 63d9aa48f3 Wording 2024-07-18 10:43:37 -04:00
Gary Gregory 660b71569e Add section for the next release 2024-07-17 21:12:22 +00:00
Gary Gregory 977e1008fb Merge branch 'release' 2024-07-17 21:10:44 +00:00
Gary Gregory 88ff12327f Bump to next development version 2024-07-17 21:10:41 +00:00
Dávid Szigecsán 59a679310a
Fix JavaDoc grammar issues (#1246)
* Remove dangling JavaDoc

* Fix grammar issues

---------

Co-authored-by: David Szigecsan <david.szigecsan@sagemcom.com>
2024-07-16 10:49:34 +01:00
Gary Gregory 535ec32c68 Merge branch 'master' into release 2024-07-13 22:44:50 +00:00
Gary Gregory 7914b958b8 Prepare for the next release candidate 2024-07-13 18:44:28 -04:00
Gary Gregory 094b6235e5 Prepare for the next release candidate 2024-07-13 18:43:19 -04:00
Gary Gregory 845ba4a77a Let RandomUtils reuse RandomStringUtils.random() 2024-07-13 18:43:03 -04:00
Gary Gregory a0bf7894ca Set RC date 2024-07-13 10:54:58 -04:00
Gary Gregory bc5bab6461 Prepare for the next release candidate 2024-07-13 14:33:32 +00:00
Gary Gregory e30167b3b3 Prepare for the next release candidate 2024-07-13 14:06:52 +00:00
Gary Gregory b1f41de44d Add test for non-blank length 1 strings 2024-07-13 09:24:38 -04:00
Gary Gregory 8b8c8b3703 Add test for non-blank length 1 strings 2024-07-13 09:22:39 -04:00
Gary Gregory 96cbd1f061 Javadoc 2024-07-13 08:58:23 -04:00
Gary Gregory 739d626300 [LANG-1657] DiffBuilder: Type constraint for method append(...,
DiffResult) too strict #786

Solution from PR #786 but with more tests
2024-07-13 08:58:08 -04:00
dependabot[bot] b08717ff5f
Bump github/codeql-action from 3.25.11 to 3.25.12 (#1245)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.11 to 3.25.12.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](b611370bb5...4fa2a79536)

---
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>
2024-07-12 11:25:39 -04:00
Gary Gregory cb078c556f Javadoc 2024-07-11 14:04:48 -04:00
Gary Gregory 12f694873a
Add AppendableJoiner and refactor string joining #1244 2024-07-11 08:34:03 -04:00
Gary Gregory e5aa6d0844
Refactor string joining into AppendableJoiner (#1244) 2024-07-11 08:32:58 -04:00
Gary Gregory c87418d011
Add RuntimeEnvironment.inContainer() #1241 2024-07-11 08:01:24 -04:00
Gary Gregory 46e4d460b3
Add RuntimeEnvironment.inContainer() (#1241)
* Add RuntimeEnv.inContainer()

* Add since tag

---------

Co-authored-by: Gary Gregory <gardgregory@gmail.com>
2024-07-11 08:00:06 -04:00
Gary Gregory 144b86a7cc Whitespace 2024-07-06 15:03:54 -04:00
Gary Gregory 90a5e8ad37 Fix CodeQL Code scanning alerts
Implicit narrowing conversion in compound assignment
2024-07-06 15:03:48 -04:00
Gary Gregory c2b9a51f8c Whitespace 2024-07-06 15:00:28 -04:00
Gary Gregory db1def8a47 [LANG-1254] ThreadLocalRandom should be used in utility classes
Add missing entry for 3.13.0
2024-07-06 14:57:42 -04:00
Gary Gregory f5c6cb60ab
Reimplement RandomStringUtils on top of SecureRandom#getInstanceStrong() #1235 2024-07-06 09:28:20 -04:00
Gary Gregory f382d61a03
Reimplement RandomStringUtils on top of SecureRandom#getInstanceStrong() (#1235)
* Reimplement RandomStringUtils on top of SecureRandom#getInstanceStrong()

The previous implementation used  ThreadLocalRandom#current()

* Performance optimizations for RandomStringUtils

This commit improves the performance of RandomStringUtils:

* Reduces the number of random bytes generated and the number of calls to the random number generator, by using a cache system `AmortizedRandomBits`.
* Optimizes the case of alphanumerical strings, reducing the number of rejections in the rejection sampling.

See comments in code for details.

* Code style and comment improvements

* Fix 2 checkstyle errors.
* Apply suggestions from review for garydgregory/commons-lang#2
* Improve comments in new (non-public) class `AmortizedRandomBits` to match comments in other classes.

* Make class final

- Rename package-private class
- Whitespace
- Add null check
- Add serialVersionUID
- Remove redunant type cast
- Throw IllegalStateException, not RuntimeException
- nextBytes() should throw NullPointerException per contract
- Javadoc: Use longer lines

* Apply comments by aherbert in
55a70c84f3 (r143834333)

---------

Co-authored-by: Gary Gregory <gardgregory@gmail.com>
Co-authored-by: Fabrice Benhamouda <yfabrice@amazon.com>
2024-07-06 09:25:20 -04:00
Gary Gregory 78154f0456
Bump org.codehaus.mojo:taglist-maven-plugin from 3.0.0 to 3.1.0 #1242 2024-07-05 20:22:00 -04:00
dependabot[bot] 6efca0342a
Bump org.codehaus.mojo:taglist-maven-plugin from 3.0.0 to 3.1.0 (#1242)
Bumps [org.codehaus.mojo:taglist-maven-plugin](https://github.com/mojohaus/taglist-maven-plugin) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/mojohaus/taglist-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/taglist-maven-plugin/compare/taglist-maven-plugin-3.0.0...3.1.0)

---
updated-dependencies:
- dependency-name: org.codehaus.mojo:taglist-maven-plugin
  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>
2024-07-05 20:21:13 -04:00