You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Swapnil Bawaskar (JIRA)" <ji...@apache.org> on 2018/04/09 22:37:28 UTC

[jira] [Closed] (GEODE-4369) the InternalRegion and InternalDistributedRegion interfaces should not have generic parameters

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

Swapnil Bawaskar closed GEODE-4369.
-----------------------------------

> the InternalRegion and InternalDistributedRegion interfaces should not have generic parameters
> ----------------------------------------------------------------------------------------------
>
>                 Key: GEODE-4369
>                 URL: https://issues.apache.org/jira/browse/GEODE-4369
>             Project: Geode
>          Issue Type: Improvement
>          Components: regions
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The InternalRegion and InternalDistributedRegion interfaces exist for internal code to be able to access internal implementation on classes the implement the Region interface.
> The Region interface has generics so that application code can say what class is used for the "key" and "value". This allows applications to be less error prone and not have a bunch of casts in them.
> But internally we never know at compile time what the type of the key and value of a Region instance will be. So internally we do not want the generics on these classes. It just causes us to always need to add <?,?> whenever we use this interface or live with a warning about using raw types.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)