Return-Path: Delivered-To: apmail-hadoop-avro-dev-archive@minotaur.apache.org Received: (qmail 81278 invoked from network); 8 Oct 2009 16:46:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 16:46:55 -0000 Received: (qmail 89418 invoked by uid 500); 8 Oct 2009 16:46:55 -0000 Delivered-To: apmail-hadoop-avro-dev-archive@hadoop.apache.org Received: (qmail 89360 invoked by uid 500); 8 Oct 2009 16:46:55 -0000 Mailing-List: contact avro-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: avro-dev@hadoop.apache.org Delivered-To: mailing list avro-dev@hadoop.apache.org Received: (qmail 89350 invoked by uid 99); 8 Oct 2009 16:46:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 16:46:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Thu, 08 Oct 2009 16:46:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4CF55234C052 for ; Thu, 8 Oct 2009 09:46:31 -0700 (PDT) Message-ID: <148644704.1255020391301.JavaMail.jira@brutus> Date: Thu, 8 Oct 2009 09:46:31 -0700 (PDT) From: "Doug Cutting (JIRA)" To: avro-dev@hadoop.apache.org Subject: [jira] Updated: (AVRO-137) Avro code generation should never cast an element to Object In-Reply-To: <207311410.1254897391647.JavaMail.jira@brutus> 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/AVRO-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated AVRO-137: ------------------------------ Attachment: AVRO-137.patch Turns out the warning in question is not generated by findbugs, but by 'javac -Xlint'. So perhaps we should instead just emit @SuppressWarnings("all") in generated code? I've attached a patch that does this. > Avro code generation should never cast an element to Object > ------------------------------------------------------------ > > Key: AVRO-137 > URL: https://issues.apache.org/jira/browse/AVRO-137 > Project: Avro > Issue Type: Bug > Components: java > Reporter: Amareshwari Sriramadasu > Assignee: Sharad Agarwal > Fix For: 1.2.0 > > Attachments: AVRO-137.patch, AVRO-137.patch > > > Avro code generation should never cast an element to Object. If casted, it results in redudant cast warning. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.