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 35ED3200CDA for ; Fri, 21 Jul 2017 04:50:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3465916C7F5; Fri, 21 Jul 2017 02:50:16 +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 7B29216C7F4 for ; Fri, 21 Jul 2017 04:50:15 +0200 (CEST) Received: (qmail 44998 invoked by uid 500); 21 Jul 2017 02:50:14 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 44983 invoked by uid 99); 21 Jul 2017 02:50:14 -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; Fri, 21 Jul 2017 02:50:14 +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 2D4DFC379F for ; Fri, 21 Jul 2017 02:50:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100 X-Spam-Level: X-Spam-Status: No, score=-100 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9D9-uXGggxLC for ; Fri, 21 Jul 2017 02:50:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0432D5FD02 for ; Fri, 21 Jul 2017 02:50:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B65FEE06AB for ; Fri, 21 Jul 2017 02:50:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1285F21EDA for ; Fri, 21 Jul 2017 02:50:00 +0000 (UTC) Date: Fri, 21 Jul 2017 02:50:00 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-4682) Standardize and enforce import order MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 21 Jul 2017 02:50:16 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Tubbs updated ACCUMULO-4682: ---------------------------------------- Component/s: build > Standardize and enforce import order > ------------------------------------ > > Key: ACCUMULO-4682 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4682 > Project: Accumulo > Issue Type: Task > Components: build > Reporter: Christopher Tubbs > Assignee: Christopher Tubbs > Fix For: 1.7.4, 1.8.2, 2.0.0 > > > I created a plugin to automatically format Java source files with import order rules. > I ran and tested it on Accumulo and it worked well, aside from a few malformed files. > http://code.revelc.net/impsort-maven-plugin/sort-mojo.html > https://github.com/revelc/impsort-maven-plugin > (NOTE: each group is sorted within its section) > I tested using Eclipse default import order rules, which are: > {code} > static * > java.* > javax.* > org.* > com.* > * - everything else > {code} > These are a bit unnecessary, I think. A saner and more useful ordering might be: > {code} > static * > org.apache.accumulo.* > java.* > javax.* > * - everything else > {code} > Alternatively, I do like the simplicity of: > {code} > static * > (with or without blank line?) > * - everything else > {code} > The plugin can handle any of these, so we just need to pick what we like. -- This message was sent by Atlassian JIRA (v6.4.14#64029)