Gary Gregory
2e71945163
Replace @code with @link for class references
2022-06-19 09:30:36 -04:00
Gary Gregory
df0296f7c2
Format tweaks
2022-06-16 10:28:47 -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
Gary Gregory
6f3b00f36d
Remove noisy inline comments.
2022-05-31 11:27:42 -04:00
Gary Gregory
88500bece2
Add and use ClassUtils.isPublic(Class).
2021-11-15 14:28:41 -05:00
Arturo Bernal
e2e3e0e19a
Avoid multiple equivalent occurrences of the same expression. ( #797 )
2021-08-31 09:06:34 -04:00
Gary Gregory
b4144bd546
Simplify with a stream.
2021-07-22 14:32:41 -04:00
Gary Gregory
0b24a06eb5
Eat own dog food.
2021-07-22 14:30:16 -04:00
Gary Gregory
7d9d4d41a6
ClassUtils.comparator().
2021-07-22 14:27:55 -04:00
Gary Gregory
e09ad8a91a
Sort members.
2021-07-22 13:56:26 -04:00
Gary Gregory
27101b4739
Add and use APIs to avoid compiler warnings and use of
...
@SuppressWarnings.
- Add and use ArrayUtils.getComponentType(T[]).
- Add and use ClassUtils.getComponentType(Class<T[]>).
- Add and use ObjectUtils.getClass(T).
2021-05-25 09:57:29 -04:00
Gary Gregory
57e5a3edd1
Remove useless in-line comments.
2021-05-25 08:59:00 -04:00
Arturo Bernal
6e4ed7cd4f
Redundant Collection operation. Use Collections.emptyIterator() ( #738 )
2021-05-14 09:37:09 -04:00
Gary Gregory
6b9964ff4b
No need to nest in else.
2021-03-05 15:18:32 -05:00
Gary Gregory
91928eed34
Combine nested 'if' statement in 'else' block to 'else if'.
2021-02-22 11:12:20 -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
53e4f62b51
Remove redundant calls to super().
2020-11-20 18:00:10 -05:00
Gary Gregory
d8f8d9a3a8
Initialize a collection when you create it.
2020-11-20 16:09:58 -05:00
Gary Gregory
43b2326713
Consistently use just the parameter name for the message of
...
NullPointerExceptions.
2020-11-15 10:40:31 -05:00
Gary Gregory
6d9102ab92
Revert "Format tweak."
...
This reverts commit c56be9c3dd
.
2020-07-17 08:51:55 -04:00
Gary Gregory
c56be9c3dd
Format tweak.
2020-07-16 19:23:10 -04:00
Gary Gregory
9747b14469
Standardize on American English spelling of 'behavior'.
2020-03-30 15:03:29 -04:00
Gary Gregory
0568456103
Remove redundant type arguments and end-of-line whitespace.
2020-02-14 09:39:49 -05:00
Gary Gregory
485876f9c2
Use final.
2020-02-14 09:36:04 -05:00
Gary Gregory
31e726e471
Javadoc.
2020-02-14 09:33:00 -05:00
Peter Verhas
bedae6950d
LANG-1480 getAbbreviatedName refactored to create appropriate length … ( #446 )
...
* LANG-1480 getAbbreviatedName refactored to create appropriate length short class names
* LANG-1480 code fixed for special extreme case ".." abbreviated to 1 length should result ".." it was throwing exception. Tests are added
* import changed to avoid wild cards
apache master merged into current branch
* Mutable object import was moved to it's original place
* some accidental formatting reverted
* some accidental formatting reverted
* some accidental formatting reverted
* some accidental formatting reverted
* some accidental formatting reverted
* some accidental formatting reverted
* some accidental formatting reverted
* added another test case
* LANG-1480 fixing JavaDoc documentation as per requested by garydgregory
* LANG-1480 shortcut implemented, argument renamed, more tests
* LANG-1480 checkstyle update
* LANG-1492 tests methods modified to be public
* LANG-1480 imports rearranged
* LANG-1480 imports rearranged
* LANG-1480 imports rearranged
* imports were added that were accidentally removed during merging master
2019-10-12 15:16:54 -04:00
Peter Verhas
23f18044d1
Update documentation related to the issue LANG-696 ( #449 )
...
* mainly documentation and some more tests, which are used in the
documentation manually copied from unit test to javaDoc
* fixed fragile unit tests (still fragile)
LANG-696 added the warning lines as requested by Stzx
* LANG-1480 checkstyle update, space inserted
* LANG-1480 import * was removed
2019-10-08 14:53:01 -04:00
Gary Gregory
3ea8244287
More lambdas, less boilerplate.
2019-09-12 20:42:35 -04:00
Ethan Wood
233711f860
(doc) ( #417 )
...
Fixing couple of dangling javadocs, converted to comments.
2019-04-12 08:46:36 -04:00
pascalschumacher
5cdac9cfd5
Make whitespace use around generic tokens consistent and add a checkstyle rule to enforce it.
2018-11-19 22:05:18 +01:00
Benedikt Ritter
f013141f60
Explicit type parameters can be removed
2018-08-24 15:37:52 +02:00
Gary Gregory
a36c903d4f
[LANG-1405] Remove checks for java versions below the minimum supported
...
one. Closes #338 .
2018-07-27 17:20:48 -06:00
Igor Curdvanovschi
b610707cd0
removes unnecessary class reference of static method calls which are declared in the same class
2018-06-20 14:28:10 +03:00
Igor Curdvanovschi
214cc7fd59
replaces 'size() == 0' and 'length() == 0' with 'isEmpty()'
2018-06-20 13:05:02 +03:00
Igor Curdvanovschi
e767af7e7e
removes unchecked exceptions declared in 'throws' clause
2018-06-20 09:03:40 +03:00
pascalschumacher
6850d88880
Fix javadoc errors reported by Java 11.
2018-05-28 10:55:30 +02:00
pascalschumacher
c1ffdbab58
fix checkstyle violations
2017-10-25 08:21:42 +02:00
Gary Gregory
6f03c0ce11
[LANG-1360] Add methods to ClassUtils to get various forms of class
...
names in a null-safe manner
2017-10-23 11:14:43 -06:00
Gary Gregory
8e8e78d849
[LANG-1360] Add methods to ClassUtils to get various forms of class
...
names in a null-safe manner
2017-10-23 10:56:09 -06:00
Jonathan Bluett-Duncan
1571050a19
[GitHub] commons-lang pull request #276 : IntelliJ IDEA refactorings.
...
Closes #276 .
2017-07-12 00:09:41 -07:00
Benedikt Ritter
1da8ccdbfe
Make sure lines in files don't have trailing white spaces and remove all trailing white spaces
2017-06-06 15:12:06 +02:00
pascalschumacher
52d6e24d19
use Validate#notNull instead of "throw new NullPointerException"
2017-04-19 20:17:58 +02:00
Gary Gregory
eb2b89efbe
Add final modifier to local variables.
2016-10-23 10:55:56 -07:00
Gary Gregory
aadb9a31ed
Add final modifier to method parameters.
2016-10-23 10:55:14 -07:00
Gary Gregory
4f82195afd
Remove redundant type arguments.
2016-10-23 10:52:50 -07:00
Henry Tung
fbb5d31a58
LANG-1214: Handle "void" in ClassUtils.getClass() ( closes #155 )
...
getClass() previously deferred to an array type to get the class,
but this fails for void, which lacks an array type.
Instead, map explicitly from primitive name to primitive class.
2016-08-21 13:16:11 +02:00
Henri Yandell
740c0f95fb
Removed @version $ from source per LANG-1129
2015-05-05 12:12:15 -07:00
Benedikt Ritter
8d0214a741
Fix SonarQube warning: org.apache.commons.lang3.ClassUtils.<static initializer for ClassUtils>()
...
makes inefficient use of keySet iterator instead of entrySet iterator.
2015-05-05 18:58:13 +02:00