Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8205589

Double.valueOf(String) and similar methods should accept CharSequence instead of String

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      It is desirable to avoid creating intermediate objects wherever possible. Static parsing methods for primitive types and their boxed versions, such as Double.parseDouble(String) and Double.valueOf(String), should accept CharSequence rather than String, to halve the number of intermediate objects created (and eliminate substring copying) when breaking a large string into tokens to be passed into these parsing methods.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: