Checkstyle: Convert tabs to spaces

This commit is contained in:
Benedikt Ritter 2016-09-19 13:40:46 +02:00
parent d58d64ddb1
commit d962a2b31c
No known key found for this signature in database
GPG Key ID: 9DAADC1C9FCC82D0
1 changed files with 18 additions and 18 deletions

View File

@ -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;
} }
/** /**