hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeag...@apache.org
Subject hadoop git commit: Delay construction of PreCondition.check failure message in Configuration#set (jeagles)
Date Mon, 27 Mar 2017 16:09:09 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 19d479168 -> 4e40e9d4d


Delay construction of PreCondition.check failure message in Configuration#set (jeagles)

(cherry picked from commit 858d597be00ce006c1d1d4cd476729e4f1de8d25)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4e40e9d4
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4e40e9d4
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4e40e9d4

Branch: refs/heads/branch-2.8
Commit: 4e40e9d4db6cf6c8b53a782113df9fc460335817
Parents: 19d4791
Author: Jonathan Eagles <jeagles@yahoo-inc.com>
Authored: Mon Mar 27 11:01:48 2017 -0500
Committer: Jonathan Eagles <jeagles@yahoo-inc.com>
Committed: Mon Mar 27 11:06:41 2017 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/conf/Configuration.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/4e40e9d4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
index f016119..7d10471 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
@@ -1141,7 +1141,7 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
         "Property name must not be null");
     Preconditions.checkArgument(
         value != null,
-        "The value of property " + name + " must not be null");
+        "The value of property %s must not be null", name);
     name = name.trim();
     DeprecationContext deprecations = deprecationContext.get();
     if (deprecations.getDeprecatedKeyMap().isEmpty()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message