mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-20 06:00:44 +00:00
Make useOrWrap null input give null output
This commit is contained in:
@ -570,6 +570,11 @@ public class CollectionUtils
|
||||
{
|
||||
try
|
||||
{
|
||||
if(collection == null)
|
||||
{
|
||||
return (null);
|
||||
}
|
||||
|
||||
Class<T> targetClass = (Class<T>) typeToken.getRawType();
|
||||
if(targetClass.isInstance(collection))
|
||||
{
|
||||
@ -602,6 +607,11 @@ public class CollectionUtils
|
||||
{
|
||||
try
|
||||
{
|
||||
if(collection == null)
|
||||
{
|
||||
return (null);
|
||||
}
|
||||
|
||||
Class<T> targetClass = (Class<T>) typeToken.getRawType();
|
||||
if(targetClass.isInstance(collection))
|
||||
{
|
||||
|
Reference in New Issue
Block a user