Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-309

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3
    • Component/s: Runtime: Class Library
    • Labels:
      None

      Description

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

        Attachments

          Activity

          Hide
          ianrogers Ian Rogers added a comment -

          Patch committed in r13813.

          Show
          ianrogers Ian Rogers added a comment - Patch committed in r13813.
          Hide
          gnu_andrew 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
          gnu_andrew 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:
              ianrogers Ian Rogers
              Reporter:
              ianrogers Ian Rogers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: