Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BC743200C44 for ; Mon, 27 Mar 2017 18:01:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BB1ED160B85; Mon, 27 Mar 2017 16:01:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0CCB6160B5D for ; Mon, 27 Mar 2017 18:01:53 +0200 (CEST) Received: (qmail 76297 invoked by uid 500); 27 Mar 2017 16:01:53 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 76288 invoked by uid 99); 27 Mar 2017 16:01:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 16:01:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1024CDFDCD; Mon, 27 Mar 2017 16:01:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jeagles@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: Delay construction of PreCondition.check failure message in Configuration#set (jeagles) Date: Mon, 27 Mar 2017 16:01:53 +0000 (UTC) archived-at: Mon, 27 Mar 2017 16:01:54 -0000 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 Authored: Mon Mar 27 11:01:48 2017 -0500 Committer: Jonathan Eagles 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>, "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