Commit Graph

416 Commits

Author SHA1 Message Date
Gary Gregory 2e71945163 Replace @code with @link for class references 2022-06-19 09:30:36 -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 eb62fccc1c No need to use the java.lang package name in Javadoc references. 2022-04-03 17:19:06 -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
cloverandwang 944608b854
[LANG-1679] Improve performance of StringUtils.unwrap(String, String) (#844) 2022-04-03 10:20:34 -04:00
Gary Gregory d7ff0ae5e5 Fix Javadoc. 2022-02-24 05:48:52 -05:00
Gary Gregory 29839c2717 Better description of Javadoc deprecation and add missing @deprecation
annotation at the package level.
2021-12-08 09:28:58 -05:00
Roland Kreuzer 3942fad3c2 [LANG-1664] Adjust doc to show argument is a primitive integer / character code point 2021-10-31 11:58:56 +13:00
Arturo Bernal d094dd624e
Remove redundant initializer. (#800) 2021-10-08 15:25:53 -04:00
Gary Gregory e3e29d585a Add StringUtils.removeStart(String, char). 2021-10-08 14:28:50 -04:00
Gary Gregory 8efbb7df05 No leading underscores in private names. 2021-09-01 14:39:35 -04:00
Gary Gregory fe60dcfd42 Deprecate StringUtils.defaultString(String, String) in favor of
Objects.toString(Object, String).
2021-08-28 16:40:49 -04:00
Gary Gregory 4cea07b48f Link to Apache Commons Text instead of deprecated methods. 2021-08-28 16:32:53 -04:00
Gary Gregory bfbf729ca7 Simplify. 2021-08-26 15:57:16 -04:00
Gary Gregory 4e18561e49 Add and use Suppliers. 2021-04-18 18:37:17 -04:00
Gary Gregory 6b9964ff4b No need to nest in else. 2021-03-05 15:18:32 -05:00
aherbert 0cfc31b987 Fix formatting 2021-03-05 11:46:15 +00:00
Gary Gregory 91928eed34 Combine nested 'if' statement in 'else' block to 'else if'. 2021-02-22 11:12:20 -05:00
Gary Gregory e73816cb69 Use 3.12.0 as the next version label.
Simplify site to use more general terms instead of the version number.
2021-02-21 20:36:21 -05:00
Arturo Bernal 8c0bae01e5
Minor Improvement: (#700)
* Add final variable.try to make the code read-only
2021-02-10 17:18:22 -05:00
Gary Gregory 4f85c164a1 Add StringUtils.substringBefore(String, int). 2021-02-10 17:04:11 -05:00
Gary Gregory dddd8c4e26 Use isEmpty(). 2021-01-16 22:30:34 -05:00
Gary Gregory f5ce8c408a Reuse JRE Arrays.fill(). 2021-01-06 21:01:32 -05:00
Gary Gregory e739844b11 Remove unused import. 2021-01-06 15:59:14 -05:00
Gary Gregory 2a8356cd43 Replace StringBuilder with StringJoiner in join() APIs. 2021-01-06 14:40:29 -05:00
Arturo Bernal 8dc37dc4a7
LANG-1636 - Boolean Join Function (#686) 2021-01-06 11:01:13 -05:00
Gary Gregory a36b59c6f8 CLean up odds and ends.
- Use EMPTY constant.
- Move a guard clause down to the implementating method from wrapper
method.
- Remove dead comments.
- Remove duplicate null check.
- Remove duplicate empty-string check.
- Use Charsets.toCharset).
2021-01-01 13:34:56 -05:00
Gary Gregory c9e825e823 Add and use LocaleUtils.toLocale(Locale) to avoid NPEs and use the
default locale when an input locale is null.
2020-12-21 12:56:19 -05:00
XenoAmess 5a17dc7ad3
refine deleteWhitespace (#569) 2020-12-05 12:30:42 -05:00
XenoAmess ea8428ab75
[LANG-1584] Refine StringUtils.isNumericSpace (#573)
* refine isNumericSpace

* fix same issues in other two functions
2020-12-05 12:24:22 -05:00
Arturo Bernal dd7f02feac
LANG-1619 - refine StringUtils.abbreviate (#663) 2020-12-05 12:20:00 -05:00
Arturo Bernal 76443d7f1d
LANG-1620 - refine StringUtils.lastIndexOfIgnoreCase (#664) 2020-12-05 12:16:31 -05:00
anomen-s d878091c2c
[LANG-1622] - javadoc of some methods incorrectly refers to another method (#668) 2020-12-03 10:32:59 -05:00
Gary Gregory 53e4f62b51 Remove redundant calls to super(). 2020-11-20 18:00:10 -05:00
Isira Seneviratne 5f3a9a6eae
Fix formatting of isAnyBlank() and isAnyEmpty(). (#513) 2020-11-17 15:17:57 -05:00
Tony Liang c6f577555b
LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException (#636)
Co-authored-by: Tony Liang <shuchel@zillowgroup.com>
2020-11-17 15:11:19 -05:00
Gary Gregory 93d520a3e1 Add StringUtils.containsAnyIgnoreCase(CharSequence, CharSequence...). 2020-11-13 10:30:08 -05:00
Sebb 4b5f1cf57d One per line 2020-09-12 23:38:51 +01:00
Sebb 433700ea80 One per line 2020-09-12 23:37:12 +01:00
Sebb 693e5129e8 Useless assignment 2020-09-12 23:34:29 +01:00
Sebb 875d1054c0 Useless parentheses 2020-09-12 23:32:56 +01:00
Sebb 7ab21126a0 Docs 2020-09-12 23:31:44 +01:00
Sebb 38a9209456 LANG-1606 StringUtils.countMatches - fix Javadoc 2020-09-12 23:23:18 +01:00
aherbert dbe022e646 LANG-1579: Improve stripAccents conversion of remaining accents
Single characters can be changed in place to avoid delete then insert.

Closes #568
2020-07-29 11:47:46 +01:00
Gary Gregory 954338a152 Sort 2 methods. 2020-07-01 17:07:09 -04:00
Gary Gregory 062bc6fe7d Add Add org.apache.commons.lang3.StringUtils.substringAfterLast(String,
int).
2020-06-27 09:32:30 -04:00
Gary Gregory d68a7a4189 Add org.apache.commons.lang3.StringUtils.substringAfter(String, int). 2020-06-27 09:24:06 -04:00
Gary Gregory cae8364d9e Use final. 2020-06-24 10:55:15 -04:00
Gary Gregory fb184a7650 Clean up imports. 2020-06-24 10:43:04 -04:00