Commit Graph

7918 Commits

Author SHA1 Message Date
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
dependabot[bot] 9b40a7fc1f
Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#1243)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65462800fd...0b2256b8c0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  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-05 12:51:49 -04:00
Gary Gregory 98a6722495 Drop codecov.io
- It now requires an API key and a login to view reports
- Instead, use 'mvn clean install site -P jacoco' to view JaCoCo HTML
reports
2024-06-29 14:28:42 -04:00
Gary Gregory d6b441070c Revert "Drop CodeQL"
This reverts commit 1a01f80645.
2024-06-29 10:53:13 -04:00
Gary Gregory ce8726f64b Revert "Drop CodeQL"
This reverts commit b25afac8b9.
2024-06-29 10:53:13 -04:00
Gary Gregory b25afac8b9 Drop CodeQL
- It now requires an API key and a login to view reports
- Instead, use 'mvn clean install site -P jacoco' to view JaCoCo HTML
reports
2024-06-29 08:12:40 -04:00
Gary Gregory 1a01f80645 Drop CodeQL
- It now requires an API key and a login to view reports
- Instead, use 'mvn clean install site -P jacoco' to view JaCoCo HTML
reports
2024-06-29 08:03:42 -04:00
dependabot[bot] abfee794aa
Bump github/codeql-action from 3.25.10 to 3.25.11 (#1240)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.10 to 3.25.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](23acc5c183...b611370bb5)

---
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-06-28 13:08:51 -04:00
Gary Gregory 5e07d873e6 Javadoc 2024-06-18 09:21:03 -04:00
dependabot[bot] 91d801dc31
Bump actions/checkout from 4.1.6 to 4.1.7 (#1237)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.6 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](a5ac7e51b4...692973e3d9)

---
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>
2024-06-14 12:09:24 -04:00
dependabot[bot] fbd0405d1e
Bump github/codeql-action from 3.25.8 to 3.25.10 (#1238)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.8 to 3.25.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](2e230e8fe0...23acc5c183)

---
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-06-14 12:09:15 -04:00
dependabot[bot] 28c3e77404
Bump codecov/codecov-action from 4.4.1 to 4.5.0 (#1236)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](125fc84a9a...e28ff129e5)

---
updated-dependencies:
- dependency-name: codecov/codecov-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>
2024-06-14 12:09:05 -04:00
Gary Gregory e1c374bf50
Bump org.apache.commons:commons-parent from 70 to 71 #1233 2024-06-11 13:19:21 -04:00
dependabot[bot] 0761a8cf48
Bump org.apache.commons:commons-parent from 70 to 71 (#1233)
Bumps [org.apache.commons:commons-parent](https://github.com/apache/commons-parent) from 70 to 71.
- [Changelog](https://github.com/apache/commons-parent/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-parent/commits)

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 13:18:41 -04:00
Gary Gregory a7871a6bdb Use Objects.toString() 2024-06-11 10:53:54 -04:00
Gary Gregory 65b479f62b Use Objects.toString() 2024-06-11 10:52:28 -04:00
Gary Gregory 35350e3eea Use Javadoc code tag 2024-06-09 13:38:33 -04:00
Gary Gregory 53cb72616a
Bump org.easymock:easymock from 5.2.0 to 5.3.0 #1232 2024-06-09 09:41:10 -04:00
dependabot[bot] 29acec2389
Bump org.easymock:easymock from 5.2.0 to 5.3.0 (#1232)
Bumps [org.easymock:easymock](https://github.com/easymock/easymock) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/easymock/easymock/releases)
- [Changelog](https://github.com/easymock/easymock/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/easymock/easymock/compare/easymock-5.2.0...easymock-5.3.0)

---
updated-dependencies:
- dependency-name: org.easymock:easymock
  dependency-type: direct:development
  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-06-09 09:40:03 -04:00
dependabot[bot] 33ab1ef553
Bump github/codeql-action from 3.25.7 to 3.25.8 (#1230)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.7 to 3.25.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f079b84933...2e230e8fe0)

---
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-06-07 12:25:17 -04:00
Gary Gregory 45a955702a Remove duplicate static data in
SerializationUtils.ClassLoaderAwareObjectInputStream
2024-06-03 08:00:42 -04:00
Gary Gregory c0dc0cfbae Sort lines 2024-06-03 07:44:08 -04:00
Gary Gregory 2dc243def0 Use simple class names instead of magix strings 2024-06-03 07:43:36 -04:00
Gary Gregory 80e075989a Sort lines 2024-06-03 07:43:21 -04:00
Gary Gregory 696d2f5051 Use simple class names instead of magix strings 2024-06-03 07:42:44 -04:00
Gary Gregory 0d1c8b3e80 Use simple class names instead of magix strings 2024-06-03 07:41:05 -04:00
Gary Gregory 9e9d293755 Null check is redundant for rare case 2024-06-03 07:30:55 -04:00
Gary Gregory fd4282b830 Remove whitespace 2024-06-03 07:28:52 -04:00
Gary Gregory b5d056211b Remove guesswork comment that could be true of any method 2024-06-03 07:28:27 -04:00
Gary Gregory a224a39b17 Simplify FastDatePrinter.TimeZoneNameRule.appendTo(Appendable, Calendar) 2024-06-03 07:25:30 -04:00
dependabot[bot] 421f9b591c
Bump github/codeql-action from 3.25.6 to 3.25.7 (#1228)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.6 to 3.25.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9fdb3e4972...f079b84933)

---
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-05-31 12:54:10 -04:00
Gary Gregory ff66cce0ca Add SystemUtils.IS_OS_MAC_OSX_SONOMA 2024-05-30 14:33:14 -04:00
Gary Gregory d0bb31bc10 Add SystemUtils.IS_OS_ANDROID 2024-05-30 08:28:38 -04:00
Gary Gregory 28e826894c Remove trailing whitespace 2024-05-29 17:33:30 -04:00
Gary Gregory 074fbefa5d Simplify test and add missing cases 2024-05-29 16:28:22 -04:00
Gary Gregory e9bd183232 Simplify test and add missing cases 2024-05-29 16:25:25 -04:00
Gary Gregory 35cc96c751 Javadoc 2024-05-29 16:21:05 -04:00