Commit Graph

7213 Commits

Author SHA1 Message Date
Gary Gregory a3d07e2962 Add @SuppressWarnings("unchecked") 2023-07-06 13:33:40 -04:00
Gary Gregory 38f55010fb Javadoc & format tweaks 2023-07-06 13:25:40 -04:00
Gary Gregory 5478116bc1 Simplify Javadoc 2023-07-05 07:58:01 -04:00
Emmanuel Bourg f0e18ed004 Modify SystemUtilsTest.test_IS_JAVA() to automatically test all the versions supported 2023-07-05 11:03:28 +02:00
Emmanuel Bourg 28e54a3536 Modify JavaVersionTest.testGetJavaVersion() to automatically test all the versions supported 2023-07-05 10:46:18 +02:00
Emmanuel Bourg 1e523283ce Fix the IS_JAVA_21 test with Java 20 2023-07-05 10:29:55 +02:00
Emmanuel Bourg 471e8da597 Add JavaVersion.JAVA_19, JavaVersion.JAVA_20 and JavaVersion.JAVA_21 2023-07-05 09:42:40 +02:00
Emmanuel Bourg 71340db86f Add SystemUtils.IS_JAVA_21 2023-07-05 09:39:25 +02:00
Dimitrios Efthymiou f68a643ef9
--corrected the isUnchecked method to check for null (#1079)
--created test for null case
2023-07-03 06:58:45 -04:00
Gary Gregory 6ea4e39087 Add tests for custom Throwable subclass 2023-07-02 20:19:07 -04:00
Gary Gregory bbf5714b5a Deprecate ExceptionUtils.ExceptionUtils() 2023-07-02 17:11:14 -04:00
Gary Gregory 6000dd8a3c Try to eliminate random failures which did happen on GH with a 100 limit 2023-07-02 16:01:51 -04:00
Gary Gregory 8168aa2bc1 Try to eliminate random failures which did happen on GH with a 100 limit 2023-07-02 15:58:11 -04:00
Gary Gregory cc8a4b16d3 Try to eliminate random failures which did happen on GH with a 100 limit 2023-07-02 15:57:36 -04:00
Gary Gregory 98ef0a4138 [LANG-1647] Add and ExceptionUtils.isChecked() and isUnchecked() #1069 2023-07-02 15:55:12 -04:00
Gary Gregory 5b60305952 Fix Javadoc @since tags
Sort members
2023-07-02 15:36:17 -04:00
Dimitrios Efthymiou 3a0d3b93a8
LANG-1647 (#1069)
* --created method that checks if a given Throwable represents a checked exception.
--created method that checks if a given Throwable represents an unchecked exception.

* PR change - removed use of local variable for tests

* I made ConcurrentUtils to use the new method

* Use final

---------

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2023-07-02 15:34:48 -04:00
Gary Gregory f909f466e3 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2023-07-02 10:38:02 -04:00
Gary Gregory b773899854 Inline single-use local variable 2023-07-02 10:32:25 -04:00
Gary Gregory 3c02dfc467
Update Javadoc for the insert methods in ArrayUtils #1078. 2023-07-02 10:21:34 -04:00
Gary Gregory 3e5edfdf02
Update Javadoc for the insert methods in ArrayUtils #1078 2023-07-02 10:20:59 -04:00
Dimitrios Efthymiou 6f0043e21a
updated the JavaDoc for the insert methods to say the methods return also null if the input array is null (#1078) 2023-07-02 10:16:39 -04:00
dependabot[bot] 39fdca2da5
Bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#1073)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.3 to 2.2.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](80e868c13c...08b4669551)

---
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-06-30 13:07:56 -04:00
dependabot[bot] 353e9fdbd4
Bump github/codeql-action from 2.1.22 to 2.20.1 (#1074)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.22 to 2.20.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2.1.22...f6e388ebf0efc915c6c5b165b019ee61a6746a38)

---
updated-dependencies:
- dependency-name: github/codeql-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-06-30 13:07:41 -04:00
Gary Gregory f4665d0bc6 [StepSecurity] ci: Harden GitHub Actions #1067 2023-06-24 17:09:05 -04:00
StepSecurity Bot e04a53dda3
[StepSecurity] ci: Harden GitHub Actions (#1067)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
2023-06-24 17:08:11 -04:00
Gary Gregory 68f58dc1ca
[LANG-1699] Corrected value of SystemUtils.JAVA_VENDOR #1066 2023-06-15 12:18:55 -04:00
Darren Coleman def9f76bca
LANG-1699: Corrected value of SystemUtils.JAVA_VENDOR (#1066) 2023-06-15 12:13:31 -04:00
dependabot[bot] c646f494bb
Bump actions/checkout from 3.5.2 to 3.5.3 (#1064)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
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-06-09 12:41:08 -04:00
Gary Gregory 2b42b185f0
[LANG-1677] Add ReflectionDiffBuilder.setExcludeFieldNames(...) and DiffExclude a… #838 2023-06-04 14:35:11 -04:00
Baerten Dennis f51299ced4
LANG-1677 : Add ReflectionDiffBuilder.setExcludeFieldNames(...) and DiffExclude a… (#838)
* LANG-1677 : Make it possible to exclude fields in ReflectionDiffBuilder

* Fix Javadoc typo

* Javadoc

* Javadoc

---------

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2023-06-04 14:30:40 -04:00
Gary Gregory 119623760e
Add comment 2023-06-03 07:36:42 -04:00
Gary Gregory ebcb39a62f Bump commons-parent from 57 to 58 2023-05-25 16:12:51 -04:00
Gary Gregory 8f08dedc11 Grammar 2023-05-24 13:31:07 -04:00
Gary Gregory ad710950a2 Javadoc, in-line comment, and messages typos 2023-05-19 08:59:46 -04:00
Gary Gregory 9e404e5eb8 Javadoc typos 2023-05-19 08:50:53 -04:00
Gary Gregory 8eef2fc922 Add Pair.accept(FailableBiConsumer)
Add Pair.apply(FailableBiFunction)
2023-05-06 15:43:58 -04:00
Gary Gregory 02e55fc072 Better consumer Javadocs 2023-05-06 14:01:43 -04:00
Gary Gregory 0755a190a5
Bump commons-parent from 56 to 57 #1061 2023-04-27 10:21:24 -04:00
dependabot[bot] 5a825de27d
Bump commons-parent from 56 to 57 (#1061)
Bumps [commons-parent](https://github.com/apache/commons-parent) from 56 to 57.
- [Release notes](https://github.com/apache/commons-parent/releases)
- [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>
2023-04-27 10:20:32 -04:00
Alex Herbert 283d37ea68 Remove assertion that assumes an x86 architecture.
This fails the build on alternative architectures, e.g. aarch64 (ARM
architecture family).
2023-04-23 09:07:28 +01:00
Gary Gregory f6e237d4ee Avoid underscores in local variable names 2023-04-20 09:10:58 -04:00
徐梦旗 67c6450b61
Refactor rename variable "hex_prefixes" to "hexPrefixes" (#1059) 2023-04-20 09:00:51 -04:00
Gary Gregory 7d7e8af450 Better common primitives as getters 2023-04-19 16:47:08 -04:00
Gary Gregory 6cca6ff4a5 Better name 2023-04-19 15:18:27 -04:00
Gary Gregory 16c34b222d Add support for Java 9's "java.locale.providers" in SystemProperties
Add most common primitives as getters
2023-04-19 15:17:45 -04:00
Gary Gregory cdcd915d02 Format: "catch(" -> "catch (" 2023-04-19 07:33:39 -04:00
Gary Gregory df64310a69 Fix XML syntax 2023-04-18 08:57:02 -04:00
Gary Gregory 5a18bf28ac Use modern maven-antrun-plugin configurtation 2023-04-18 08:56:31 -04:00
Gary Gregory f0e5dcffe2
Remove unnecessary statement in DurationFormatUtils #965 2023-04-18 08:45:40 -04:00