Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 42668 invoked from network); 3 Mar 2011 03:58:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 03:58:01 -0000 Received: (qmail 68375 invoked by uid 500); 3 Mar 2011 03:57:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 68307 invoked by uid 500); 3 Mar 2011 03:57:58 -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 68293 invoked by uid 99); 3 Mar 2011 03:57:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 03:57:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD 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; Thu, 03 Mar 2011 03:57:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DDC754D7FA for ; Thu, 3 Mar 2011 03:57:36 +0000 (UTC) Date: Thu, 3 Mar 2011 03:57:36 +0000 (UTC) From: "Dave Brosius (JIRA)" To: derby-dev@db.apache.org Message-ID: <716286440.10072.1299124656904.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <538450700.4149.1298960736975.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-5077) [patch] remove non productive instanceof checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated DERBY-5077: -------------------------------- Attachment: remove_useless_instanceofs.diff determined the places where instanceof checks might detect null values, and replace with null checking. The rest of the places the instanceof was removed. > [patch] remove non productive instanceof checks > ----------------------------------------------- > > Key: DERBY-5077 > URL: https://issues.apache.org/jira/browse/DERBY-5077 > Project: Derby > Issue Type: Improvement > Components: Network Server > Affects Versions: 10.7.1.1 > Reporter: Dave Brosius > Priority: Trivial > Fix For: 10.8.0.0 > > Attachments: remove_useless_instanceofs.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > various places in code does instanceof checks where the outcome can be determined statically to be always true or always false. > removed these checks as they do nothing. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira