Checkstyle: Convert tabs to spaces
This commit is contained in:
parent
d58d64ddb1
commit
d962a2b31c
|
@ -764,24 +764,24 @@ public class MethodUtils {
|
||||||
* @return the aggregate number of inheritance hops between assignable argument class types.
|
* @return the aggregate number of inheritance hops between assignable argument class types.
|
||||||
*/
|
*/
|
||||||
private static int distance(Class<?>[] classArray, Class<?>[] toClassArray) {
|
private static int distance(Class<?>[] classArray, Class<?>[] toClassArray) {
|
||||||
int answer=0;
|
int answer = 0;
|
||||||
|
|
||||||
if (!ClassUtils.isAssignable(classArray, toClassArray, true)) {
|
if (!ClassUtils.isAssignable(classArray, toClassArray, true)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
for (int offset = 0; offset < classArray.length; offset++) {
|
for (int offset = 0; offset < classArray.length; offset++) {
|
||||||
// Note InheritanceUtils.distance() uses different scoring system.
|
// Note InheritanceUtils.distance() uses different scoring system.
|
||||||
if (classArray[offset].equals(toClassArray[offset])) {
|
if (classArray[offset].equals(toClassArray[offset])) {
|
||||||
continue;
|
continue;
|
||||||
} else if (ClassUtils.isAssignable(classArray[offset], toClassArray[offset], true)
|
} else if (ClassUtils.isAssignable(classArray[offset], toClassArray[offset], true)
|
||||||
&& !ClassUtils.isAssignable(classArray[offset], toClassArray[offset], false)) {
|
&& !ClassUtils.isAssignable(classArray[offset], toClassArray[offset], false)) {
|
||||||
answer++;
|
answer++;
|
||||||
} else {
|
} else {
|
||||||
answer = answer+2;
|
answer = answer + 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue