This commit is contained in:
Gary Gregory 2022-06-13 20:40:22 -04:00
commit bd7956949e
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Steve Bosman">Fix unstable coverage of CharSequenceUtils tests noticed during merge of PRs 898 and 899 #901.</action>
<action type="fix" dev="aherbert" due-to="Arturo Bernal">Rewrite Conversion.binaryBeMsb0ToHexDigit to invert logic of binaryToHexDigit.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Allow extension of previously final classes ImmutablePair and ImmutableTriple.</action>
<action type="fix" dev="ggregory" due-to="shalk, Bruno P. Kinoshita, Gary Gregory">Update ClassUtils Javadoc with some missing throws NPE #912.</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add GitHub coverage.yml.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add EnumUtils.getEnumSystemProperty(...).</action>

View File

@ -533,6 +533,7 @@ public class ClassUtils {
* @param classLoader the class loader to use to load the class
* @param className the class name
* @return the class represented by {@code className} using the {@code classLoader}
* @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final ClassLoader classLoader, final String className) throws ClassNotFoundException {
@ -548,6 +549,7 @@ public class ClassUtils {
* @param className the class name
* @param initialize whether the class must be initialized
* @return the class represented by {@code className} using the {@code classLoader}
* @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final ClassLoader classLoader, final String className, final boolean initialize) throws ClassNotFoundException {
@ -583,6 +585,7 @@ public class ClassUtils {
*
* @param className the class name
* @return the class represented by {@code className} using the current thread's context class loader
* @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final String className) throws ClassNotFoundException {
@ -597,6 +600,7 @@ public class ClassUtils {
* @param className the class name
* @param initialize whether the class must be initialized
* @return the class represented by {@code className} using the current thread's context class loader
* @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final String className, final boolean initialize) throws ClassNotFoundException {
@ -1582,6 +1586,7 @@ public class ClassUtils {
*
* @param className the class name
* @return the converted name
* @throws NullPointerException if the className is null
*/
private static String toCanonicalName(String className) {
className = StringUtils.deleteWhitespace(className);