Checkstyle: Add missing curly braces

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

View File

@ -153,8 +153,9 @@ private static float getTotalTransformationCost(final Class<?>[] srcArgs, final
// "source" and "destination" are the actual and declared args respectively.
float totalCost = 0.0f;
final long normalArgsLen = isVarArgs ? destArgs.length-1 : destArgs.length;
if (srcArgs.length < normalArgsLen)
if (srcArgs.length < normalArgsLen) {
return Float.MAX_VALUE;
}
for (int i = 0; i < normalArgsLen; i++) {
totalCost += getObjectTransformationCost(srcArgs[i], destArgs[i]);
}