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 9F84F175FF for ; Mon, 2 Nov 2015 07:39:28 +0000 (UTC) Received: (qmail 6804 invoked by uid 500); 2 Nov 2015 07:39:23 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 6749 invoked by uid 500); 2 Nov 2015 07:39:23 -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 6738 invoked by uid 99); 2 Nov 2015 07:39:22 -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; Mon, 02 Nov 2015 07:39:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BE5F9DFBDE; Mon, 2 Nov 2015 07:39:22 +0000 (UTC) From: DaanHoogland To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: findbugs: ! equals instead of != Content-Type: text/plain Message-Id: <20151102073922.BE5F9DFBDE@git1-us-west.apache.org> Date: Mon, 2 Nov 2015 07:39:22 +0000 (UTC) Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1019#discussion_r43602513 --- Diff: plugins/network-elements/bigswitch/src/com/cloud/network/bigswitch/BigSwitchBcfApi.java --- @@ -296,7 +296,7 @@ private void setHttpHeader(final HttpMethodBase m) { m.setRequestHeader(CONTENT_TYPE, CONTENT_JSON); m.setRequestHeader(ACCEPT, CONTENT_JSON); m.setRequestHeader(HTTP_HEADER_INSTANCE_ID, CLOUDSTACK_INSTANCE_ID + "-" + zoneId); - if (hash != "" ) { + if (! "".equals(hash)) { --- End diff -- sure but why two calls (isNotEmpty calls isEmpty) while this is all we need? Don't mistake my question for sarcasm. I want to know. --- 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. ---