cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-4908) FB - Globalization.java - use valueOf instead of new Long/new Integer
Date Wed, 25 Sep 2013 01:34:02 GMT

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

Peter updated CB-4908:
----------------------

    Issue Type: Sub-task  (was: Task)
        Parent: CB-4909
    
> FB - Globalization.java - use valueOf instead of new Long/new Integer
> ---------------------------------------------------------------------
>
>                 Key: CB-4908
>                 URL: https://issues.apache.org/jira/browse/CB-4908
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Android
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Priority: Minor
>
> Resolve FindBugs reported issues in *Globalization.java*:
> Before
> {code}
> obj.put("millisecond", new Long(0)); 
> {code}
> After
> {code}
> obj.put("millisecond", Long.valueOf(0)); 
> {code}
> Before (2 places)
> {code}
> obj.put("rounding", new Integer(0)); 
> {code}
> After
> {code}
> obj.put("rounding", Integer.valueOf(0));
> {code}

--
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