Commit Graph

7173 Commits

Author SHA1 Message Date
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
Arturo Bernal 65ac1e9f88
Remove unnecessary conditions. It's no need it after assigns tmp to duration. (#965) 2023-04-18 08:43:43 -04:00
Gary Gregory ee7afc5c2d Javadoc 2023-04-18 08:35:05 -04:00
Gary Gregory 5a0eed4f38
[LANG-1681] Fix some FieldUtils Javadocs #1047 2023-04-17 09:00:51 -04:00
laurentschoelens f19416ae37
[LANG-1681] - fix some javadoc on FieldUtils methods (#1047)
* [LANG-1681] - fix some javadoc on FieldUtils methods

* [LANG-1681] - fixing javadoc on FieldUtils methods and adding tests

[LANG-1681] - fixing javadoc on DiffBuilder

[LANG-1681] - fixing javadoc on HashCodeBuilder

[LANG-1681] - adding `@throws` javadoc on ClassPathUtils

[LANG-1681] - fixing javadoc on Fraction

[LANG-1681] - add missing javadoc and tests on RandomStringUtils

[LANG-1681] - one fix and add missing javadoc/tests on MethodUtils

[LANG-1681] - add missing javadoc/tests on TypeUtils

---------

Co-authored-by: Laurent SCHOELENS <laurent.schoelens@sfr.com>
Co-authored-by: Diego Marcilio <dvmarcilio@gmail.com>
2023-04-17 08:58:49 -04:00
Gary Gregory 860a343217
AnnotationUtilsTest & FormattableUtilsTest Only use static imports to import assert methods in tests #1052 2023-04-17 08:56:44 -04:00
徐梦旗 c6b68f43d5
refactor: Only use static imports to import assert methods in tests (#1052) 2023-04-17 08:56:10 -04:00
aherbert f054284048 Track changes 2023-04-17 13:23:43 +01:00
徐梦旗 f59fa5c36d
Fix the comment of ComparableUtils, using "smallest", not "largest" (#1058) 2023-04-17 13:22:01 +01:00
徐梦旗 4623bf1827
Fix the comment of Failable, redundant "-" (#1056) 2023-04-17 13:20:11 +01:00
Gary Gregory 2d82a504ab
Swap the order of assertion args (first excepted then actual) #1054 2023-04-14 15:32:30 -04:00
徐梦旗 dd49aa9d1f
fix: swap the order of assertion args (first excepted then actual) (#1054) 2023-04-14 15:31:39 -04:00
dependabot[bot] ac17f1ed7e Bump actions/checkout from 3.5.0 to 3.5.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...8e5e7e5ab8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-14 18:52:10 +02:00
Gary Gregory c7d7a20767 Only use static imports to import assert methods in tests 2023-04-13 20:20:19 -04:00
Gary Gregory 2694f28774
ThreadUtilsTest#testThreadGroups will test failed when using Junit5 parallel test #1051 2023-04-13 20:08:54 -04:00
徐梦旗 e2b2d90b60
fix: when running testThreadGroups and testThreadGroupsById in two threads, they have the same thread group name, will cause test failed. (#1051) 2023-04-13 20:07:14 -04:00
Michael Ernst 7b15f3e61d Update URL for JDK bug 2023-04-10 21:50:23 +02:00
Gary Gregory fee35ddc14 Add SystemUtils.IS_JAVA_20 2023-04-01 11:53:21 -04:00
Gary Gregory 18e772ca54 Add SystemUtils.IS_JAVA_19 2023-04-01 11:48:25 -04:00
Gary Gregory 944d6e10a4 Refactor and add RegExUtils.dotAll() and dotAllMatcher() 2023-04-01 11:40:07 -04:00
dependabot[bot] 6434086689
Bump ossf/scorecard-action from 2.1.2 to 2.1.3 (#1046)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](e38b1902ae...80e868c13c)

---
updated-dependencies:
- dependency-name: ossf/scorecard-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-04-01 07:09:08 -04:00
dependabot[bot] 3197d4f967 Bump actions/setup-java from 3.10.0 to 3.11.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3.10.0...v3.11.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-31 18:02:27 +02:00
Gary Gregory ccb4ad2234 Javadoc/Comments: Remove extra "whitespace" 2023-03-25 09:36:25 -04:00
dependabot[bot] 079db15da8 Bump actions/checkout from 3.4.0 to 3.5.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 17:03:17 +01:00
dependabot[bot] 7201f954ce Bump actions/cache from 3.3.0 to 3.3.1
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 17:05:41 +01:00
dependabot[bot] a7d535cfdb Bump actions/checkout from 3.3.0 to 3.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 17:05:24 +01:00
Gary Gregory 5317ec65db
[LANG-1643] Construct ArrayList with better default size #1041 2023-03-14 13:24:29 -04:00
laurentschoelens 4ebef61c03
LANG-1643 : init ArrayList with good default size (#1041)
Co-authored-by: Laurent SCHOELENS <laurent.schoelens@sfr.com>
2023-03-14 13:23:11 -04:00
Arturo Bernal 4e8d9d39f1
Make a non-access modifier local variables. (#980) 2023-03-14 08:54:07 -04:00
Gary Gregory 4d7e6ffac8 Use XSD and fix XML 2023-03-13 08:19:45 -04:00
dependabot[bot] bb1311dc0d
Bump actions/cache from 3.2.6 to 3.3.0 (#1037)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.6 to 3.3.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.2.6...v3.3.0)

---
updated-dependencies:
- dependency-name: actions/cache
  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-03-10 14:22:35 -05:00
Gary Gregory 2cf6486197 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2023-03-04 09:05:02 -05:00
Gary Gregory e9f3ece022 Add ClassLoaderUtils.getSystemURLs() and getThreadURLs(). 2023-03-04 09:04:47 -05:00
Julian Blaskiewicz 2986222b8c (doc) fix typo in comment 2023-03-02 18:31:20 +01:00
Gary Gregory 8ba794181d
[LANG-1694] MethodUtils.getMatchingMethod() fails with "Found multiple candidates" #1033 2023-03-01 17:41:49 -05:00
SeasonPan d47dc7af76
[LANG-1694] MethodUtils.getMatchingMethod() fails with "Found multiple candidates" (#1033)
* [LANG-1694]'MethodUtils.getMatchingMethod' fails with "Found multiple candidates" when the method is abstract

* [LANG-1694]MethodUtilsTest modify the modifier‘s order

* [LANG-1694]MethodUtils.getMatchingMethod modify PMD check
2023-03-01 17:40:35 -05:00
Gary Gregory be210cfa28 Add @SuppressWarnings 2023-03-01 09:49:23 -05:00
dependabot[bot] 588a20b27f
Bump actions/cache from 3.2.5 to 3.2.6 (#1034)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.2.5...v3.2.6)

---
updated-dependencies:
- dependency-name: actions/cache
  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-02-24 11:43:42 -05:00
P. Ottlinger 469013a4f5 Fix typos in Javadoc 2023-02-19 21:03:37 +01:00
Gary Gregory eaff7e0a69
Add missing exception javadoc/tests for some null arguments #869 2023-02-11 10:40:13 -05:00
Diego Marcilio 680f9d5492
Add missing javadoc/tests for some null arguments (#869) 2023-02-11 10:38:50 -05:00