commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1001) Add Frequency#incrementValue(char|int|long) methods ?
Date Sun, 01 Sep 2013 22:00:51 GMT

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

Sebb commented on MATH-1001:
----------------------------

I have found quite a few bugs which were revealed by enabling auto-boxing warnings, so I always
keep the setting [1] enabled.
There may well be other developers who like to do the same (for the same or other reasons),
so it helps if we provide methods that avoid them getting the same warnings.


[1] Windows / Preferences / Java Compiler / Errors & Warnings / Boxing & Unboxing
conversions / Warning
                
> Add Frequency#incrementValue(char|int|long) methods ?
> -----------------------------------------------------
>
>                 Key: MATH-1001
>                 URL: https://issues.apache.org/jira/browse/MATH-1001
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Sebb
>
> The Frequency class has addValue(char|int|long) methods, but the incrementValue method
only supports Comparable<?>
> It would avoid casting warnings in code if primitives were supported, as well as being
more consistent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message