Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 747A110E31 for ; Mon, 15 Dec 2014 18:58:44 +0000 (UTC) Received: (qmail 71154 invoked by uid 500); 15 Dec 2014 18:58:44 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 71111 invoked by uid 500); 15 Dec 2014 18:58:44 -0000 Mailing-List: contact commits-help@nifi.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.incubator.apache.org Delivered-To: mailing list commits@nifi.incubator.apache.org Received: (qmail 71101 invoked by uid 99); 15 Dec 2014 18:58:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2014 18:58:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 15 Dec 2014 18:58:43 +0000 Received: (qmail 68103 invoked by uid 99); 15 Dec 2014 18:57:06 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2014 18:57:06 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4D586A2BC9D; Mon, 15 Dec 2014 18:57:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: markap14@apache.org To: commits@nifi.incubator.apache.org Date: Mon, 15 Dec 2014 18:57:06 -0000 Message-Id: <8dd754b0db8c4a1f84d19aca3c1baca5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/4] incubator-nifi git commit: NIFI-49: include name of default value if it is not allowed in a property descriptor X-Virus-Checked: Checked by ClamAV on apache.org Repository: incubator-nifi Updated Branches: refs/heads/develop e04a55d3a -> 9e60aa0f2 NIFI-49: include name of default value if it is not allowed in a property descriptor Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/f0bea5c1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/f0bea5c1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/f0bea5c1 Branch: refs/heads/develop Commit: f0bea5c156fa0bfc1d7773ae45ea73ba594ba77a Parents: e04a55d Author: Mark Payne Authored: Mon Dec 15 13:21:59 2014 -0500 Committer: Mark Payne Committed: Mon Dec 15 13:21:59 2014 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/nifi/components/PropertyDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/f0bea5c1/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java ---------------------------------------------------------------------- diff --git a/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java b/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java index c95d449..19600ab 100644 --- a/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java +++ b/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java @@ -425,7 +425,7 @@ public final class PropertyDescriptor implements Comparable throw new IllegalStateException("Must specify a name"); } if (!isValueAllowed(defaultValue)) { - throw new IllegalStateException("Default value is not in the set of allowable values"); + throw new IllegalStateException("Default value '" + defaultValue + "' is not in the set of allowable values"); } return new PropertyDescriptor(this);