mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 02:58:33 +00:00
Checkstyle: Add missing curly braces
This commit is contained in:
parent
e6ad17215d
commit
d58d64ddb1
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user