Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C842BF8C for ; Mon, 16 Jan 2012 12:01:03 +0000 (UTC) Received: (qmail 12118 invoked by uid 500); 16 Jan 2012 12:01:02 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 11911 invoked by uid 500); 16 Jan 2012 12:01:02 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 11552 invoked by uid 99); 16 Jan 2012 12:01:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 12:01:02 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 12:01:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2A0D514F1A4 for ; Mon, 16 Jan 2012 12:00:41 +0000 (UTC) Date: Mon, 16 Jan 2012 12:00:41 +0000 (UTC) From: "Babak Vahdat (Commented) (JIRA)" To: issues@camel.apache.org Message-ID: <1247456464.44534.1326715241173.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1661584402.25819.1324291710649.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-4796) Code Clean-Up 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/CAMEL-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186887#comment-13186887 ] Babak Vahdat commented on CAMEL-4796: ------------------------------------- Thanks Claus for closing *this* ticket as it was what I forgot to do :-( > Code Clean-Up > ------------- > > Key: CAMEL-4796 > URL: https://issues.apache.org/jira/browse/CAMEL-4796 > Project: Camel > Issue Type: Improvement > Affects Versions: 2.8.3 > Reporter: Babak Vahdat > Assignee: Babak Vahdat > Fix For: 2.10.0 > > Attachments: CAMEL-4796-@Deprecated-@Override.patch, CAMEL-4796-avoid-rawtypes-2.patch, CAMEL-4796-avoid-rawtypes-3.patch, CAMEL-4796-avoid-rawtypes.patch, CAMEL-4796-enhanced-for-loops.patch, CAMEL-4796-obsolete-super-call.patch, CAMEL-4796-organize-imports-2.patch, CAMEL-4796-organize-imports.patch, CAMEL-4796-remove-$NON-NLS$.patch, CAMEL-4796-remove-unnecessary-casts.patch > > > This ticket aims to resolve the issues already mentioned in [1], but just to name them ALL explicitly here: > - Removal of the unused imports > - Convert for loops to the enhanced one (supported since Java Tiger) > - Removal of the obsolete "super();" call by the Constructors (Since JDK 1.0 compilers already do it inside the byte-code for free!) > - Remove of all $NON-NLS$ tags > - Removal of the unnecessary casts > - Usage of the @Deprecated & @Override annotations where required (will be skipped because of the reasons Claus has already mentioned in his comment for the already provided patch) > - Avoidance of the raw type declarations by the generified classes *as much as possible* > - Removal of unused private memebers: Types, Constructors, Fields and Methods where applicable > - Remove the trailing whitespace on *all* lines, even on the empty ones > > Add of missing serialVersionUID where required and default it to *1L* where serialVersionUID has been already declared should be better postponed to the major 3.0.x release as otherwise the backward-compatility would be broken on the 2.x.y release branches. > If you can think of other possible clean-ups as well you may like to propose for including, then please first better discuss it in [1] so that other commiters can better/faster/easier react on it. > I'll provide the patches *exactly in the same order* as mentioned above. > Right now on the trunk my used IDE (eclipse) reports 1991 warnings! > [1] http://camel.465427.n5.nabble.com/DISCUSS-Trunk-Code-Cleanup-td5071594.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira