Commit Graph

2362 Commits

Author SHA1 Message Date
Gary Gregory 01c61f987b Add SystemUtils.IS_OS_WINDOWS_11. 2022-06-27 10:15:57 -04:00
Gary Gregory 2e71945163 Replace @code with @link for class references 2022-06-19 09:30:36 -04:00
Gary Gregory 911fbb9352 Add ExceptionUtils.getRootCauseStackTraceList(Throwable) 2022-06-18 13:41:40 -04:00
Gary Gregory 01f8edc18b In-line some local vars 2022-06-18 13:27:48 -04:00
Gary Gregory 70b2250f80 Add ExceptionUtils.forEach(Throwable, Consumer<Throwable>)
Add ExceptionUtils.stream(Throwable).
2022-06-18 13:23:48 -04:00
Gary Gregory df0296f7c2 Format tweaks 2022-06-16 10:28:47 -04:00
Gary Gregory 6cdaa83614 Close HTML tags 2022-06-14 14:21:42 -04:00
Gary Gregory 4aef230954 Foramtting. 2022-06-14 13:49:34 -04:00
Gary Gregory 8e687f1cf2 Use final 2022-06-14 08:58:07 -04:00
Gary Gregory c18803a47f Fix code duplication 2022-06-14 08:44:11 -04:00
Gary Gregory dc8920206e Close HTML tags
Remove useless inline comments.
2022-06-14 08:39:04 -04:00
Gary Gregory dceed1be7f Better way to deal with ignored exceptions and PMD checks.
Gets rid of output like:
<suppressedviolation
filename="...\src\main\java\org\apache\commons\lang3\reflect\MemberUtils.java"
suppressiontype="nopmd" msg="Avoid empty catch blocks" usermsg="
"></suppressedviolation>
2022-06-13 23:02:14 -04:00
Gary Gregory bd7956949e Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2022-06-13 20:40:22 -04:00
Gary Gregory bdde0e1c13 Better way to deal with ignored exceptions and PMD checks.
Gets rid of output like:
<suppressedviolation
filename="...\src\main\java\org\apache\commons\lang3\reflect\MemberUtils.java"
suppressiontype="nopmd" msg="Avoid empty catch blocks" usermsg="
"></suppressedviolation>
2022-06-13 20:40:11 -04:00
shalk(xiao kun) bf2d0bf02b
update ClassUtils javadoc with throw npe (#912) 2022-06-13 18:14:37 -04:00
Nikhil Kumar ef07c645ef fix StringUtils.upperCase(String str) java doc 2022-06-12 14:41:40 +12:00
Gary Gregory 2da006dbbe Fix camel case and comment typos. 2022-06-10 07:56:28 -04:00
Gary Gregory 932b1ae52c Use final 2022-06-05 10:01:25 -04:00
Gary Gregory 940b79b59c Allow extension of previously final classes ImmutablePair and
ImmutableTriple
2022-06-02 07:18:36 -04:00
Gary Gregory db4a8b47f0 @SuppressWarnings("unchecked") not needed 2022-06-01 15:58:15 -04:00
Gary Gregory 6f3b00f36d Remove noisy inline comments. 2022-05-31 11:27:42 -04:00
Gary Gregory d1b750eaca Javadoc 2022-05-28 14:03:15 -04:00
Gary Gregory 8a6a5d9ebc Fix Javadoc, use ternary expressions, use Objects instead of Validate,
format fix
2022-05-28 13:59:39 -04:00
Gary Gregory 16de452a37 Add DurationUtils.of(FailableConsumer|FailableRunnbale) 2022-05-28 09:02:02 -04:00
Gary Gregory eb2bc4d3b7 Remove @SuppressWarnings("unchecked") 2022-05-28 07:58:24 -04:00
Gary Gregory 25000a62f4 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2022-05-28 07:53:41 -04:00
Gary Gregory 247cae4896 Better Javadoc 2022-05-28 07:53:27 -04:00
Arturo Bernal cf7c9522aa Rewrite method to be the same as binaryToHexDigit but working from the end of the array backwards. 2022-05-27 16:17:41 +01:00
Gary Gregory 6eb223bb8c Add DurationUtils.since(Temporal) 2022-05-27 10:21:53 -04:00
Arturo Bernal 8b7539432c Fix javadoc. Remove unused @param. 2022-05-27 07:35:45 +12:00
Gary Gregory 9f1ac974e1 Add @SuppressWarnings("unchecked") 2022-05-15 18:11:47 -04:00
Gary Gregory 07f4eaaddd Use IllegalArgumentException llke the reset of the method. 2022-05-15 17:01:59 -04:00
Gary Gregory f813045283 [Spotbugs 4.7.0] More precise exception handling, don't throw
RuntimeException, use our own UncheckedException.
2022-05-15 16:21:49 -04:00
Gary Gregory af157c49d5 Fix, lambda & in-line single use variable that cannot be null. 2022-05-15 16:01:00 -04:00
Gary Gregory cbe3523b12 Remove prefix from instance variable names. 2022-05-15 15:54:49 -04:00
Gary Gregory 25e91c4242 Move new internal Calendar APIs to CalendarUtils and refactor. 2022-05-15 15:51:31 -04:00
Gary Gregory eff43864b3 [LANG-1680] FastDateFormat does not support the 'L'-Pattern from
SimpleDateFormat.

- Use final.
- Fix typos.
- In-line single use local variables.
2022-05-15 15:22:50 -04:00
Steve Bosman 127869e88f
LANG-1680 Add support for standalone month formats (#892) 2022-05-15 15:13:41 -04:00
Gary Gregory a2ed219fb8 Internal refactoring to allow to chain calls using
MemberUtils.setAccessibleWorkaround().
2022-05-10 18:35:20 -04:00
Gary Gregory 54f00795a3 Fix Javadoc. 2022-05-10 18:26:55 -04:00
Gary Gregory 2a22770183 Remove unnecessary @SuppressWarnings("unchecked") 2022-05-09 08:47:38 -04:00
Arturo Bernal d5ff609743
* Inline var (#769)
* Simplify conditions
* Make final variable
2022-05-04 10:51:41 -04:00
Arturo Bernal ba08d40beb
Remove unnecessary variable creations. (#882) 2022-05-02 09:33:50 -04:00
Arturo Bernal b58fb5bdc1
Make final mappingFunction variable. (#876) 2022-05-02 09:31:21 -04:00
Gary Gregory e6dadcb49a Fix Javadoc for Validate.isAssignableFrom() 2022-05-02 09:30:03 -04:00
Gary Gregory 9bf6b2fb41 Make Validate.isAssignableFrom() check null inputs. 2022-05-02 09:28:15 -04:00
Gary Gregory eb62fccc1c No need to use the java.lang package name in Javadoc references. 2022-04-03 17:19:06 -04:00
Gary Gregory 517a9e0630 Fixed NPE getting Stack Trace if Throwable is null #733
Simplify.
2022-04-03 17:13:23 -04:00
Arturo Bernal 1926e35e3e
Fixed NPE getting Stack Trace if Throwable is null (#733) 2022-04-03 17:02:00 -04:00
Hubert 0f7d484882
LANG-1675 - Improve performance of StringUtils.join for primitives (#812)
* String.join - boolean - use StringBuilder

* Replaced StringJoiner by StringBuilder

* Fix: formatting, removed condition in for

* Use substring instead of deleteCharAt. Computed StringBuilder size for - char, boolean join methods

* Reformating
2022-04-03 12:52:56 -04:00