commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/2] [lang] Checkstyle: Add missing curly braces
Date Mon, 19 Sep 2016 11:40:57 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master e6ad17215 -> d962a2b31


Checkstyle: Add missing curly braces


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/d58d64dd
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/d58d64dd
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/d58d64dd

Branch: refs/heads/master
Commit: d58d64ddb1f205a54c7eb57fe0cbec9c59cad8d6
Parents: e6ad172
Author: Benedikt Ritter <britter@apache.org>
Authored: Mon Sep 19 13:39:49 2016 +0200
Committer: Benedikt Ritter <britter@apache.org>
Committed: Mon Sep 19 13:39:49 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d58d64dd/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java b/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java
index 3922bb4..41605cf 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/MemberUtils.java
@@ -153,8 +153,9 @@ abstract class MemberUtils {
         // "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]);
         }


Mime
View raw message