Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5976

cleanup Integer deprecation warnings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 12.6
    • None

    Description

      In Java 9,

      new Integer()

      has been deprecated..

         [repeat] /home/bwalker/src/netbeans/nbi/engine/src/org/netbeans/installer/wizard/components/actions/InstallAction.java:183: warning: [deprecation] Integer(int) in Integer has been deprecated
         [repeat]                              new Integer(INSTALLATION_ERROR_CODE));
         [repeat]                              ^
      

      There are a LOT of these, so I'm staging the changes so they are more manageable. In addition, these changes do not change behavior for legacy Java runtime environments. But, in Java 9, and afterwards, these changes can provide a possible speedup..

      Attachments

        Issue Links

          Activity

            People

              brad.walker Brad Walker
              brad.walker Brad Walker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m