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

ASF subversion and git services commented on GEODE-6850:
--------------------------------------------------------

Commit e377ed7d3d76a244a1494025231851fac8b37350 in geode's branch 
refs/heads/develop from Darrel Schneider
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=e377ed7 ]

GEODE-6850: change int stats to long (#3713)

The "Int" methods on the statistics interfaces have been deprecated in favor of 
the corresponding "Long" methods.
The implementation of these deprecated "Int" methods now use the "Long" methods.
The only place this could be visible to a user is if they call 
Statistics.get(String) or Statistics.get(StatisticDescriptor). Both of these 
methods return a "Number" instance.
These methods continue to do this and existing code will work fine if it does 
not try to downcast the Number to a subclass. But for "Int" stats, these 
methods used to return an "Integer" instance and now return a "Long" instance. 
If code used to cast to an "Integer" it will now be broken.
Many places in the product now use these deprecated "Int" methods and as of 
this checkin all those places are now creating a "Long" statistic.

> Deprecate "int" statistics in favor of "long" statistics
> --------------------------------------------------------
>
>                 Key: GEODE-6850
>                 URL: https://issues.apache.org/jira/browse/GEODE-6850
>             Project: Geode
>          Issue Type: Improvement
>          Components: docs, statistics
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Major
>              Labels: docs
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The "int" methods on the statistics interfaces have been deprecated.
> They are on the Statistics interface and the StatisticsTypeFactory interface 
> (look for methods containing "Int") .
> The implementation of these deprecated "int" methods now use the "long" 
> methods.
> The only place this could be visible to a user is if they call 
> Statistics.get(String) or Statistics.get(StatisticDescriptor). Both of these 
> methods return a "Number" instance.
> These methods continue to do this and existing code will work fine if it does 
> not try to downcast the Number to a subclass. But for "int" stats, these 
> methods used to return an "Integer" instance and now return a "Long" instance.



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

Reply via email to