|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -62,15 +62,13 @@ abstract class ConversionUtils { |
|
|
|
// yes
|
|
|
|
// yes
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (sourceElementType.getType().isAssignableFrom(targetElementType.getType())) { |
|
|
|
if (sourceElementType.getType().isAssignableFrom(targetElementType.getType())) { |
|
|
|
// maybe
|
|
|
|
// maybe
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
|
|
|
|
// no
|
|
|
|
// no
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Class<?> getEnumType(Class<?> targetType) { |
|
|
|
public static Class<?> getEnumType(Class<?> targetType) { |
|
|
|
Class<?> enumType = targetType; |
|
|
|
Class<?> enumType = targetType; |
|
|
|