Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 67923 invoked from network); 15 Mar 2010 06:36:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Mar 2010 06:36:35 -0000 Received: (qmail 28434 invoked by uid 500); 15 Mar 2010 06:35:49 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 28321 invoked by uid 500); 15 Mar 2010 06:35:49 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 28284 invoked by uid 99); 15 Mar 2010 06:35:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 06:35:48 +0000 X-ASF-Spam-Status: No, hits=-1009.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 06:35:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66E22234C495 for ; Mon, 15 Mar 2010 06:35:27 +0000 (UTC) Message-ID: <1154645968.260411268634927420.JavaMail.jira@brutus.apache.org> Date: Mon, 15 Mar 2010 06:35:27 +0000 (UTC) From: "Li Jing Qin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6465) [classlib][nio]Small fixes according to the findbug results In-Reply-To: <1826012892.199491268297907242.JavaMail.jira@brutus.apache.org> 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/HARMONY-6465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845200#action_12845200 ] Li Jing Qin commented on HARMONY-6465: -------------------------------------- I have refresh my code base. It seems the point 2 I have removed has already been excluded. (sigh) > [classlib][nio]Small fixes according to the findbug results > ----------------------------------------------------------- > > Key: HARMONY-6465 > URL: https://issues.apache.org/jira/browse/HARMONY-6465 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: All > Reporter: Li Jing Qin > Assignee: Tim Ellison > Priority: Minor > Fix For: 5.0M14 > > Attachments: findbug-nio.diff, findbug-nio.diff > > > According to the findbug results, this patch including simple fixes or refactors as follow: > 1. Use Integer.valueOf instead of new Integer, which may use the Integer cached. (MappedByteBufferFactory.java) > 2. Use the primitive 0L instead of the new Long(0). (SocketChannelImpl.java) > 3. Change the final int to be a static field. (EpollSelectorImpl.java) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.