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 A149C200B29 for ; Thu, 30 Jun 2016 19:52:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9FEC4160A52; Thu, 30 Jun 2016 17:52:26 +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 1AF79160A06 for ; Thu, 30 Jun 2016 19:52:25 +0200 (CEST) Received: (qmail 88764 invoked by uid 500); 30 Jun 2016 17:52:25 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 88748 invoked by uid 99); 30 Jun 2016 17:52:25 -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; Thu, 30 Jun 2016 17:52:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DCDE4DFF03; Thu, 30 Jun 2016 17:52:24 +0000 (UTC) From: JPercivall To: dev@nifi.apache.org Reply-To: dev@nifi.apache.org References: In-Reply-To: Subject: [GitHub] nifi-minifi pull request #21: MINIFI-41 - CLI utility for template.xml -> YA... Content-Type: text/plain Message-Id: <20160630175224.DCDE4DFF03@git1-us-west.apache.org> Date: Thu, 30 Jun 2016 17:52:24 +0000 (UTC) archived-at: Thu, 30 Jun 2016 17:52:26 -0000 Github user JPercivall commented on a diff in the pull request: https://github.com/apache/nifi-minifi/pull/21#discussion_r69178841 --- Diff: minifi-commons/minifi-commons-schema/src/main/java/org/apache/nifi/minifi/commons/schema/BaseSchema.java --- @@ -15,13 +15,17 @@ * limitations under the License. */ -package org.apache.nifi.minifi.bootstrap.util.schema.common; +package org.apache.nifi.minifi.commons.schema; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; +import java.util.Collections; +import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; +import java.util.Set; +import java.util.stream.Collectors; public class BaseSchema { --- End diff -- Right the "Validation Issue helper methods" access the validation issues, which is something every schema will have, so it's good to keep them implemented how they are. The "Value Access/Interpretation helper methods" are all methods that do not necessarily rely on the internal representation of each schema but instead are helper methods for accessing/interpreting values. So they can be static. For toMap I agree that it's good to encourage the use of LinkedHashMap. Maybe a protected method getMap for the schemas to use. Then toMap would be abstract. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---