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 E6599194DF for ; Thu, 14 Apr 2016 18:11:35 +0000 (UTC) Received: (qmail 85457 invoked by uid 500); 14 Apr 2016 18:11:35 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 85400 invoked by uid 500); 14 Apr 2016 18:11:35 -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 85389 invoked by uid 99); 14 Apr 2016 18:11:35 -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, 14 Apr 2016 18:11:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CE3BDDFE2E; Thu, 14 Apr 2016 18:11:34 +0000 (UTC) From: jburwell To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Fix Sync of template.properties in Swift Content-Type: text/plain Message-Id: <20160414181134.CE3BDDFE2E@git1-us-west.apache.org> Date: Thu, 14 Apr 2016 18:11:34 +0000 (UTC) Github user jburwell commented on the pull request: https://github.com/apache/cloudstack/pull/1331#issuecomment-210081688 @rafaelweingartner The issue is not one of style but performance and availability. The garbage collector skips reachability evaluations of ``final static`` fields where it must perform those for instance variables. This cost adds up when a large number of object is allocated and deallocated. Second, you cannot log from a static method. Our standard in the codebase is to have ``final static`` loggers, and I don't see a compelling reason to step away from it. In terms of the Mockito approach, I wouldn't have an opinion if the unit test where not requiring us to change the class. The test should always be the servant of the system not the other way around. Personally, I find mocks to be an obfuscation especially when the thing being mocked provides a standard mechanism to observe side-effects. --- 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. ---