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 63DE7200B91 for ; Thu, 29 Sep 2016 23:02:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 62925160AE3; Thu, 29 Sep 2016 21:02:28 +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 A20E1160AC1 for ; Thu, 29 Sep 2016 23:02:27 +0200 (CEST) Received: (qmail 52642 invoked by uid 500); 29 Sep 2016 21:02:26 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 52629 invoked by uid 99); 29 Sep 2016 21:02:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 21:02:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E7FE4C63A1 for ; Thu, 29 Sep 2016 21:02:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4jJswg-BKgab for ; Thu, 29 Sep 2016 21:02:23 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 7EFDC5FBDB for ; Thu, 29 Sep 2016 21:02:23 +0000 (UTC) Received: by mail-yw0-f178.google.com with SMTP id i129so56329467ywe.2 for ; Thu, 29 Sep 2016 14:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=b2FSTLKxy1fyTo680885ZDCc9HzYrI3Dy5lE5Co8Mfg=; b=PZ033fr+JW1/QyWf3NsC6j4whUe36D4mos+ZTgzQ052Hu99GAB1fnhb137QF3qZpvZ LJYLPYCUzhpZUmnQYTvIMsUPOmhama0fqHAdgj7Qc7y5TzaGlmzH1Hwgb3/dH+n9J2f3 ThL8BgLgB4y9jnWuHuBOVawMmjdKxfoFZvbJeuGyGzXRbJtP7n5asw6inH42+l2DKWZc ViF6a5c5A+Rf0AyNCI1PrwjDeKAhIt9MX1RXIYpQ/GY3U78akvKRkE54uM9YRG1F7BPB IIr7utM4e4ZeOh5Mw+uCCxU3+0PGsvHffXKw1B/NmvXTt7rS9KnKxwSb7n5Vq4T6IXKK EmNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=b2FSTLKxy1fyTo680885ZDCc9HzYrI3Dy5lE5Co8Mfg=; b=gjddH0+bGrehkm5C/jKOWPgLGTL9O+WNHMtDVuRUO47QYNhafCMqcskk3Z89g4pMgy T5v74U0VyAv8ZnV/QXRsrsRWMXmf7a7E+Np3kzn/edBjOE6l7byqI2uCQLZA4F0w/UuU jUbBZvV7AYg7Wg7ELn8rX+TQWrKituwReo94RJvxmVIbiqKOeIQkiTMfv2ugAynEChqa Mm1A/KNStJetXhLFq8zP0dijBkID7vnMmYMgfn7HN8n2tGPEYwOi6H6YcsOqMrfSoJkG 5t7a9HznWsD3oGdc7BXPJ8NZYkfne440qt/I2FQJuDI2VsPzwWtuGtFJ30s3qb9OmHuK t3Bw== X-Gm-Message-State: AA6/9RnaX15URNcpsC23MlV6Gjk/JoHNS7aMmbkdwTw2OIQpjUdfXKCF7hH39HFO7QL9pw+LONPaZeE3/7k0GA== X-Received: by 10.129.179.74 with SMTP id r71mr2089072ywh.156.1475182942945; Thu, 29 Sep 2016 14:02:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.234.4 with HTTP; Thu, 29 Sep 2016 14:02:22 -0700 (PDT) In-Reply-To: <7415525D-7AD2-40F6-9A8F-A2DDF7BE5876@bennet-schulz.de> References: <7415525D-7AD2-40F6-9A8F-A2DDF7BE5876@bennet-schulz.de> From: Clebert Suconic Date: Thu, 29 Sep 2016 17:02:22 -0400 Message-ID: Subject: Re: [DISCUSS] Artemis coding style part 2 To: "dev@activemq.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Thu, 29 Sep 2016 21:02:28 -0000 Yep.. I will make the change. there is no reason it wasn't done before other than.. .oops ;) On Thu, Sep 29, 2016 at 5:00 PM, Bennet Schulz wrot= e: > I personally prefer the 2nd one, but in my opinion it=E2=80=99s not that = important. Take whatever you want as long as the the whole product stays as= good as it already is ;-) > > >> Am 29.09.2016 um 20:41 schrieb Christopher Shannon : >> >> Hey Everyone, >> >> Last year we had a discussion on the coding style for Artemis and a chan= ge >> was made to the opening curly brace. However, I've been in the code qui= te >> a bit the past couple weeks doing testing (I am starting to look at what >> needs to be done to help move missing features from 5.x) and I've notice= d a >> couple of things that still don't match up with the 5.x style. >> >> In general I think think we should try and get the style closer to 5.x >> because it will make going back and forth between to two code bases easi= er. >> The main thing I noticed is the while the opening brace was moved the >> closing curly brace is still on its own line which doesn't match the sty= le >> of 5.x. This makes it a bit annoying when working in one project and the= n >> doing work in a different project as suddenly you have to remember where >> the curly brace is supposed to go. >> >> For example: >> >> Current format: >> try { >> //do something >> } >> catch (Exception cause) { >> >> } >> >> Proposed format, notice that the catch(Exception) part is on the same li= ne >> as the closing brace >> try { >> //do something >> } catch (Exception cause) { >> >> } >> >> Thoughts? My preference would be to adopt entire google style guide but = I >> think at the least should fix the closing curly brace so it matches up w= ith >> 5.x. > --=20 Clebert Suconic