Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-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 205DDF80E for ; Tue, 2 Apr 2013 07:05:17 +0000 (UTC) Received: (qmail 4451 invoked by uid 500); 2 Apr 2013 07:05:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4405 invoked by uid 500); 2 Apr 2013 07:05:16 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 4376 invoked by uid 99); 2 Apr 2013 07:05:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 07:05:15 +0000 Date: Tue, 2 Apr 2013 07:05:15 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6125) Code clean up in client driver. 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/DERBY-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619579#comment-13619579 ] Knut Anders Hatlen commented on DERBY-6125: ------------------------------------------- The 03-a and 04-a patches have added getter methods for some static arrays in order to return a copy rather than a direct reference to the array. I think these methods could be simplified to just returning array.clone() instead of manually creating a new array and copying the contents into it. NetConnection.completeConnect() was made final in 04-a, but that method doesn't actually do anything except calling super.completeConnect(). Remove the override and make the super method final instead? > Code clean up in client driver. > ------------------------------- > > Key: DERBY-6125 > URL: https://issues.apache.org/jira/browse/DERBY-6125 > Project: Derby > Issue Type: Improvement > Components: Network Client > Reporter: Dag H. Wanvik > Attachments: derby-6125-01-a.diff, derby-6125-01-b.diff, derby-6125-01-b.status, derby-6125-02-a.diff, derby-6125-02-a.status, derby-6125-03-a.diff, derby-6125-03-a.status, derby-6125-04-a.diff, derby-6125-04-a.status, derby-6125-05-a.diff > > > Clean up unused code, lacking finals, too wide visibility etc. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira