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 40C47200B40 for ; Fri, 1 Jul 2016 21:02:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F687160A61; Fri, 1 Jul 2016 19:02:13 +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 89A4C160A4D for ; Fri, 1 Jul 2016 21:02:12 +0200 (CEST) Received: (qmail 82048 invoked by uid 500); 1 Jul 2016 19:02:11 -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 82028 invoked by uid 99); 1 Jul 2016 19:02:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 19:02:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EE7F02C02A1 for ; Fri, 1 Jul 2016 19:02:10 +0000 (UTC) Date: Fri, 1 Jul 2016 19:02:10 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4357) Remove redundant code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 19:02:13 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359484#comment-15359484 ] Christopher Tubbs commented on ACCUMULO-4357: --------------------------------------------- I was curious and had a few extra moments to spare, so I went into Eclipse and turned on some extra compiler warnings. I know the diamond operator was something we had discussed doing when we bumped to Java 7, but I also saw the other two things, which were relatively minor. Eclipse made it easy to take care of them automatically, so it was a pretty low-risk change using that built-in tooling. There were others I chose not to apply, like removing unnecessary "else" clauses (such as when the previous "if" did a return, exit, or threw an exception). It helped readability in most cases, but it was a big change, and didn't help readability in all cases, so I chose not to apply it because I didn't have time to review and assess. Another one I turned on was to look for unnecessary casts, but was surprised to find I didn't see any. > Remove redundant code > --------------------- > > Key: ACCUMULO-4357 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4357 > Project: Accumulo > Issue Type: Task > Components: build > Reporter: Christopher Tubbs > Assignee: Christopher Tubbs > Priority: Trivial > Fix For: 1.8.0 > > Time Spent: 10m > Remaining Estimate: 0h > > Minor QC nits quickly and easily fixed: > * Remove unnecessary generics parameters; prefer diamond operator wherever possible. > * Remove extra semicolons. > * Remove redundant interface declarations. -- This message was sent by Atlassian JIRA (v6.3.4#6332)