You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2014/03/18 04:21:50 UTC

[jira] [Commented] (ACCUMULO-2490) Pair.fromEntry should accept bounded wild card parameters

    [ https://issues.apache.org/jira/browse/ACCUMULO-2490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938740#comment-13938740 ] 

Mike Drob commented on ACCUMULO-2490:
-------------------------------------

This could potentially be part of a larger scrub to make sure we are using generics appropriately in all places in our API.

> Pair.fromEntry should accept bounded wild card parameters
> ---------------------------------------------------------
>
>                 Key: ACCUMULO-2490
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2490
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>            Reporter: Mike Drob
>            Priority: Minor
>              Labels: API, newbie
>             Fix For: 1.7.0
>
>
> The following \[psuedo-]code should be legal:
> {code}
> Entry<Integer, String> entry = new Entry(10, "IO")
> Pair<Object,Object> pair = Pair.fromEntry(entry)
> {code}
> This is possible if we replace the generic parameters with bounded wild cards.



--
This message was sent by Atlassian JIRA
(v6.2#6252)