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 3F9F8200B4A for ; Wed, 6 Jul 2016 08:20:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3E6CE160A76; Wed, 6 Jul 2016 06:20:53 +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 AEA62160A6F for ; Wed, 6 Jul 2016 08:20:52 +0200 (CEST) Received: (qmail 6590 invoked by uid 500); 6 Jul 2016 06:20:51 -0000 Mailing-List: contact dev-help@metamodel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.apache.org Delivered-To: mailing list dev@metamodel.apache.org Received: (qmail 6579 invoked by uid 99); 6 Jul 2016 06:20:51 -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; Wed, 06 Jul 2016 06:20:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 42C39E01C1; Wed, 6 Jul 2016 06:20:51 +0000 (UTC) From: LosD To: dev@metamodel.apache.org Reply-To: dev@metamodel.apache.org References: In-Reply-To: Subject: [GitHub] metamodel pull request #113: Dynamic DataContext factory (MM 1099) Content-Type: text/plain Message-Id: <20160706062051.42C39E01C1@git1-us-west.apache.org> Date: Wed, 6 Jul 2016 06:20:51 +0000 (UTC) archived-at: Wed, 06 Jul 2016 06:20:53 -0000 Github user LosD commented on a diff in the pull request: https://github.com/apache/metamodel/pull/113#discussion_r69680105 --- Diff: core/src/main/java/org/apache/metamodel/util/ResourceUtils.java --- @@ -18,11 +18,31 @@ */ package org.apache.metamodel.util; +import java.net.URI; + +import org.apache.metamodel.factory.ResourceFactoryRegistryImpl; +import org.apache.metamodel.factory.ResourceProperties; +import org.apache.metamodel.factory.SimpleResourceProperties; +import org.apache.metamodel.factory.UnsupportedResourcePropertiesException; + /** * Static utility methods for handling {@link Resource}s. */ public class ResourceUtils { + public static Resource toResource(URI uri) { + return toResource(new SimpleResourceProperties(uri)); + } + + public static Resource toResource(String uri) { + return toResource(new SimpleResourceProperties(uri)); + } + + public static Resource toResource(ResourceProperties resourceProperties) + throws UnsupportedResourcePropertiesException { --- End diff -- Here's one of the examples I talked about. Why do this declared the throwing, when the overloaded methods (just above) does not, even though they just call this (along with a constructor)? --- 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. ---