Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32ED31894D for ; Wed, 11 Nov 2015 07:42:43 +0000 (UTC) Received: (qmail 25872 invoked by uid 500); 11 Nov 2015 07:42:42 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 25814 invoked by uid 500); 11 Nov 2015 07:42:42 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 25803 invoked by uid 99); 11 Nov 2015 07:42:42 -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, 11 Nov 2015 07:42:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6CDFAE0280; Wed, 11 Nov 2015 07:42:42 +0000 (UTC) From: DaanHoogland To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CID-1338387: handle unknown storage endpo... Content-Type: text/plain Message-Id: <20151111074242.6CDFAE0280@git1-us-west.apache.org> Date: Wed, 11 Nov 2015 07:42:42 +0000 (UTC) Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/1056#issuecomment-155694568 @miguelaferreira Optional is very clear indeed. So is exception handling. When you need to handle a possible null return one level deep optional is fine. Newbees look at the code of one hypervisor guru as example of the code for an other hypervisor guru. Let's not implement a different solution strategy in each but find a solution that works in a generic way, avoiding confusion on the part of the spectator. @rafaelweingartner your stubbornness is much appreciated. I want to understand exactly what happens as well. You have not convinced me that the call is without side effects yet. At the very least an EndPoint object is created by the spring framework. I don't say that this side effect is desired but I want to be sure before just cutting the code away. The endpoint in a storage subsystem is not intended to be the same as a hypervisor and maybe I let let myself be misled by that. --- 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. ---