avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Gargan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-683) Specify types in static factory methods in Requestors
Date Sun, 24 Oct 2010 19:56:20 GMT

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

Stephen Gargan updated AVRO-683:
--------------------------------

    Attachment: typed-requestors.patch

> Specify types in static factory methods in Requestors
> -----------------------------------------------------
>
>                 Key: AVRO-683
>                 URL: https://issues.apache.org/jira/browse/AVRO-683
>             Project: Avro
>          Issue Type: Improvement
>    Affects Versions: 1.5.0
>            Reporter: Stephen Gargan
>            Priority: Trivial
>             Fix For: 1.5.0
>
>         Attachments: typed-requestors.patch
>
>
> The attached patch adds type information to the static factory methods in the SpecificRequestor
and ReflectRequestor to avoid the necessity of casting the proxy. 
> TestNamespace proxy = (TestNamespace)SpecificRequestor.getClient(TestNamespace.class,
client);
> becomes
> TestNamespace proxy = SpecificRequestor.getClient(TestNamespace.class, client);

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


Mime
View raw message