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:01:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 46d37a65c -> 858d597be


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


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

Branch: refs/heads/trunk
Commit: 858d597be00ce006c1d1d4cd476729e4f1de8d25
Parents: 46d37a6
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:01:48 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/858d597b/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 a9c8d9c..60b0398 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
@@ -1208,7 +1208,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