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 BD7E9CBBC for ; Sun, 14 Jul 2013 12:42:53 +0000 (UTC) Received: (qmail 16645 invoked by uid 500); 14 Jul 2013 12:42:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16555 invoked by uid 500); 14 Jul 2013 12:42:52 -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 16545 invoked by uid 99); 14 Jul 2013 12:42:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jul 2013 12:42:49 +0000 Date: Sun, 14 Jul 2013 12:42:49 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-673) Get rid of the NodeFactory 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-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708011#comment-13708011 ] ASF subversion and git services commented on DERBY-673: ------------------------------------------------------- Commit 1502965 from [~dagw] in branch 'code/trunk' [ https://svn.apache.org/r1502965 ] DERBY-673: Get rid of the NodeFactory Patch, derby-673-more-typesafe-6. This cleans up most compiler warnings in the classes touched, including unnecessary casts due to changes introduced by this use, but also others. Some warnings were silenced using the @SuppressWarning tag (mostly use of old classes like Vector, Hashtable), in other cases the underlying problem was fixed by changing the code as required. It also introduces an explicit TriggerDescriptorList class extending a generified GenericDescriptorList. Some local variables shadowing others are renamed and in in case the two variables were merged into one. I left in place warnings about missing serialVersionUID in serializable classes since I am not sure whether they can be safely suppressed; it would need further analysis. > Get rid of the NodeFactory > -------------------------- > > Key: DERBY-673 > URL: https://issues.apache.org/jira/browse/DERBY-673 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Rick Hillegas > Assignee: Dag H. Wanvik > Labels: derby_triage10_11 > Attachments: derby-673-1.diff.gz, derby-673-1.status, derby-673-2.diff.gz, derby-673-2.status, derby-673-3.diff.gz, derby-673-3.status, derby-673-fixcomments.diff, derby-673-more-typesafe-6.diff, derby-673-more-typesafe-6.status, derby-673-typesafe-lists-1.diff, derby-673-typesafe-lists-1.status, derby-673-typesafe-lists-2.diff.gz, derby-673-typesafe-lists-2.status, nodefactory-31.status, nodefactory-31.zip > > > This piece of code once had a purpose in life. It was one of the double-joints which allowed cloudscape to ship with and without compiler support for the synchronization language. Synchronization has been removed. If we want to plug in optional language components, I think there are better ways to do this. > The NodeFactory turned into a big, sprawling piece of code. At some point this code was slimmed down by telescoping all of its factory methods into a couple unwieldly, weakly-typed overloads backed by cumbersome logic in the actual node constructors. I would like to reintroduce strongly typed node constructors which the parser can call directly. This will make node generation easier to read and less brittle and it will get rid of the now useless NodeFactory class. -- 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