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 A878818B37 for ; Sun, 31 Jan 2016 13:53:53 +0000 (UTC) Received: (qmail 10993 invoked by uid 500); 31 Jan 2016 13:53:53 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 10934 invoked by uid 500); 31 Jan 2016 13:53:53 -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 10922 invoked by uid 99); 31 Jan 2016 13:53: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; Sun, 31 Jan 2016 13:53:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D4390DFDC7; Sun, 31 Jan 2016 13:53:52 +0000 (UTC) From: GabrielBrascher To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Allow VM snapshots and volume snapshots t... Content-Type: text/plain Message-Id: <20160131135352.D4390DFDC7@git1-us-west.apache.org> Date: Sun, 31 Jan 2016 13:53:52 +0000 (UTC) Github user GabrielBrascher commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/672#discussion_r51360756 --- Diff: plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java --- @@ -4251,6 +4257,34 @@ public void rebootVM(final Connection conn, final VM vm, final String vmName) th } } + protected String skipOrRemoveSR(Connection conn, SR sr) { --- End diff -- @DaanHoogland With all due respect, I don't see why a protected method can't be documented. In my point of view, private methods don't have to be documented (but may benefit from it), but protected methods might be treated as public (in terms of documenting). Even Oracle gives an example of a protected constructor with javadoc http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#defaultconstructors. In fact, at Xenserver625StorageProcessor class, this method is seen as "public". The question here should be: Is this method self-explanatory? I think that with respect to its act Yes. Althought it could be documented clarifying when this method skips and when it removes the SR. --- 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. ---