Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4909 Resolve FindBugs issues
  3. CB-4908

FB - Globalization.java - use valueOf instead of new Long/new Integer

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • None
    • cordova-android
    • None

    Description

      Resolve FindBugs reported issues in Globalization.java:

      Before

      obj.put("millisecond", new Long(0)); 
      

      After

      obj.put("millisecond", Long.valueOf(0)); 
      

      Before (2 places)

      obj.put("rounding", new Integer(0)); 
      

      After

      obj.put("rounding", Integer.valueOf(0));
      

      Attachments

        Activity

          People

            BBosman Bas Bosman
            dinglemouse Peter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: