[
https://issues.apache.org/jira/browse/GEODE-9851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456895#comment-17456895
]
ASF subversion and git services commented on GEODE-9851:
--------------------------------------------------------
Commit 79475fa4a5e3cb82def90a1a8b7fa22a023eb57c in geode's branch
refs/heads/develop from Jacob Barrett
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=79475fa ]
GEODE-9851: Use InterestType and DataPolicy over ordinal int. (#7103)
* Make InterestType an enum and use strong type in method parameters.
* Use strong type DataPolicy in method parameters.
* Prepare for migration to enum.
> Use strongly typed enums rather than int for enumeration like values.
> ---------------------------------------------------------------------
>
> Key: GEODE-9851
> URL: https://issues.apache.org/jira/browse/GEODE-9851
> Project: Geode
> Issue Type: Improvement
> Reporter: Jacob Barrett
> Priority: Major
> Labels: pull-request-available
>
> Internally register interest has both an interest policy and data storage
> policy that it passes around as `int`. Since these values are finite and have
> well defined values it makes sense to pass them as proper Java enums.
> Strongly typing them provides compile time checks on acceptable values and
> makes the code more readable.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)