Avoid multiple equivalent occurrences of the same expression. (#797)
This commit is contained in:
parent
8c153b8333
commit
e2e3e0e19a
|
@ -1365,10 +1365,7 @@ public class ClassUtils {
|
|||
if (Float.TYPE.equals(cls)) {
|
||||
return Double.TYPE.equals(toClass);
|
||||
}
|
||||
if (Character.TYPE.equals(cls)) {
|
||||
return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass);
|
||||
}
|
||||
if (Short.TYPE.equals(cls)) {
|
||||
if (Character.TYPE.equals(cls) || Short.TYPE.equals(cls)) {
|
||||
return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass);
|
||||
}
|
||||
if (Byte.TYPE.equals(cls)) {
|
||||
|
|
Loading…
Reference in New Issue