geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Krone (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-1895) refactor code that does instanceof OffHeapRegionEntry
Date Thu, 15 Jun 2017 20:38:00 GMT

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

Fred Krone updated GEODE-1895:
------------------------------
    Labels: offheap  (was: )

> refactor code that does instanceof OffHeapRegionEntry
> -----------------------------------------------------
>
>                 Key: GEODE-1895
>                 URL: https://issues.apache.org/jira/browse/GEODE-1895
>             Project: Geode
>          Issue Type: Improvement
>          Components: offheap
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>              Labels: offheap
>
> The code has about 10 places it does "instanceof OffHeapRegionEntry."
> It should be pretty easy to refactor these away.
> In most of these places we can just call a method on RegionEntry that does nothing (by
default), and then override that method on OffHeapRegionEntry to do the offheap work.
> Using "default" methods on interfaces (new in JDK 1.8) should make this easy.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message