Skip to content

Commit ab108a1

Browse files
committed
Add comment
1 parent 70e6930 commit ab108a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ private static float getPrimitivePromotionCost(final Class<?> srcClass, final Cl
177177
cost += 0.1f;
178178
cls = ClassUtils.wrapperToPrimitive(cls);
179179
}
180+
// Increase the cost as the loop widens the type.
180181
for (int i = 0; cls != destClass && i < WIDENING_PRIMITIVE_TYPES.length; i++) {
181182
if (cls == WIDENING_PRIMITIVE_TYPES[i]) {
182183
cost += 0.1f;

0 commit comments

Comments
 (0)