Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-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 3B7DB10DF7 for ; Mon, 14 Oct 2013 20:55:50 +0000 (UTC) Received: (qmail 34851 invoked by uid 500); 14 Oct 2013 20:55:50 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 34761 invoked by uid 500); 14 Oct 2013 20:55:46 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 34435 invoked by uid 500); 14 Oct 2013 20:55:44 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 34379 invoked by uid 99); 14 Oct 2013 20:55:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 20:55:44 +0000 Date: Mon, 14 Oct 2013 20:55:43 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CRUNCH-276) Apply static analysis fixes, improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13794470#comment-13794470 ] Josh Wills commented on CRUNCH-276: ----------------------------------- If no one else wants to look this over, I'm going to commit this to master later today and then take another pass at CRUNCH-278. > Apply static analysis fixes, improvements > ----------------------------------------- > > Key: CRUNCH-276 > URL: https://issues.apache.org/jira/browse/CRUNCH-276 > Project: Crunch > Issue Type: Task > Affects Versions: 0.7.0 > Reporter: Sean Owen > Priority: Minor > Attachments: CRUNCH-276.patch > > > Browsing through the Crunch code with a static analyzer, I see a number of minor issues that can be cleaned up, even automatically, by the same tools. > Most are likely completely non-controversial since they do not affect the functionality of the code: > - Remove unused imports > - Fix bad javadoc > - Typos > - Unnecessary casts > - Redundant modifiers on interface methods > - Access modifiers that have no effect (public constructor in private class) > - Missing @Override, @ Deprecated > - Bad literals like 0d > Others are also likely uncontroversial although might be termed a matter of style, although the changes would be towards standard Sun style; for example: > - Braces around all blocks > - No unnecessarily final on locals > - Unnecessarily inverted conditions > Some are signature changes, although only for entirely private elements: > - Making methods static > - Type weakening > - Remove use of old classes like Hashtable > - Declare collections by interface > - Raw use of generic types > And finally, there are a few which could conceivably break a caller, but only if doing something unintended. I want to avoid these unless the likelihood of an issue is very remote: > - Making utility classes final and non-instantiable -- should not be subclassed or instantiated > Before I get way into this -- it will likely touch 200+ files -- thoughts? I believe Josh was broadly supportive but here are the specifics. -- This message was sent by Atlassian JIRA (v6.1#6144)