Uploaded image for project: 'JAPI'
  1. JAPI
  2. JAPI-358

Avoid use of deprecated type constructors

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.12.x
    • 7.12.x
    • dfsclient
    • None

    Description

      Several instances of deprecated constructor usage such as:
      return new Long(0);
      return new Double(1.1);
      return new Boolean(false);
      Should be avoided per:

      • @deprecated
      • It is rarely appropriate to use this constructor. The static factory
      • {@link #valueOf(boolean)}

        is generally a better choice, as it is

      • likely to yield significantly better space and time performance.
      • Also consider using the final fields {@link #TRUE}

        and

        {@link #FALSE}
      • if possible.

      Attachments

        Activity

          People

            Michael-Gardner Michael Gardner
            rpastrana Rodrigo Pastrana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: