RVM
  1. RVM
  2. RVM-309

Greater use of "<Number>.valueOf" rather than "new <Number>"

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3
    • Component/s: Runtime: Class Library
    • Labels:
      None
    • Number of attachments :
      0

      Description

      GNU Classpath 0.96.1 makes wide use of "new Integer" where Integer.valueOf would be a possible more optimal replacement.

        Activity

        Hide
        Ian Rogers added a comment -

        Patch committed in r13813.

        Show
        Ian Rogers added a comment - Patch committed in r13813.
        Hide
        Andrew John Hughes added a comment -

        Committed to Classpath

        2007-10-27 Ian Rogers <ian.rogers@manchester.ac.uk>

        • java/beans/PropertyChangeSupport.java,
        • java/beans/VetoableChangeSupport.java,
        • java/io/ObjectStreamClass.java,
        • java/lang/reflect/Array.java,
        • java/net/DatagramSocket.java,
        • java/net/ServerSocket.java,
        • java/net/Socket.java,
        • java/nio/charset/CoderResult.java,
        • java/security/Security.java,
        • java/security/spec/RSAKeyGenParameterSpec.java,
        • java/text/ChoiceFormat.java,
        • java/text/DecimalFormat.java,
        • java/text/MessageFormat.java:
          Make use of new valueOf methods.
        Show
        Andrew John Hughes added a comment - Committed to Classpath 2007-10-27 Ian Rogers <ian.rogers@manchester.ac.uk> java/beans/PropertyChangeSupport.java, java/beans/VetoableChangeSupport.java, java/io/ObjectStreamClass.java, java/lang/reflect/Array.java, java/net/DatagramSocket.java, java/net/ServerSocket.java, java/net/Socket.java, java/nio/charset/CoderResult.java, java/security/Security.java, java/security/spec/RSAKeyGenParameterSpec.java, java/text/ChoiceFormat.java, java/text/DecimalFormat.java, java/text/MessageFormat.java: Make use of new valueOf methods.

          People

          • Assignee:
            Ian Rogers
            Reporter:
            Ian Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: