Remove unneeded conditional logic
Update `ConversionUtils` to remove conditional logic that isn't necessary. Issue: SPR-16968
This commit is contained in:
parent
634f5c2792
commit
ad6d183a06
|
|
@ -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");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -62,14 +62,12 @@ abstract class ConversionUtils {
|
|||
// yes
|
||||
return true;
|
||||
}
|
||||
else if (sourceElementType.getType().isAssignableFrom(targetElementType.getType())) {
|
||||
if (sourceElementType.getType().isAssignableFrom(targetElementType.getType())) {
|
||||
// maybe
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
// no
|
||||
return false;
|
||||
}
|
||||
// no
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Class<?> getEnumType(Class<?> targetType) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue