[ 
https://issues.apache.org/jira/browse/AVRO-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Oliver updated AVRO-257:
------------------------------

    Attachment: AVRO-257.patch

This also fixes some unnecessary casting by using Class<?> and also an used 
SuppressedWarnings("unchecked") in SpecificRecordBase. If committers would 
prefer those changes not be included, let me know and I'll submit another patch 
without those changes.

> Dead code removal
> -----------------
>
>                 Key: AVRO-257
>                 URL: https://issues.apache.org/jira/browse/AVRO-257
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Kevin Oliver
>            Priority: Trivial
>             Fix For: 1.3.0
>
>         Attachments: AVRO-257.patch
>
>
> There is dead code in org.apache.avro.reflect.ReflectData.validate().  The 
> code is checking if datum is not an instance of Object. But it always is, as 
> it is declared as Object and it is not null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to