Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30165 Eliminate compilation warnings
  3. SPARK-30676

Eliminate warnings from deprecated constructors of java.lang.Integer and java.lang.Double

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Spark Core
    • None

    Description

      The constructors of java.lang.Integer and java.lang.Double has been deprecated already, see https://docs.oracle.com/javase/9/docs/api/java/lang/Integer.html. The following warnings are printed while compiling Spark:

      1. RDD.scala:240: constructor Integer in class Integer is deprecated: see corresponding Javadoc for more information.
      2. MutableProjectionSuite.scala:63: constructor Integer in class Integer is deprecated: see corresponding Javadoc for more information.
      3. UDFSuite.scala:446: constructor Integer in class Integer is deprecated: see corresponding Javadoc for more information.
      4. UDFSuite.scala:451: constructor Double in class Double is deprecated: see corresponding Javadoc for more information.
      5. HiveUserDefinedTypeSuite.scala:71: constructor Double in class Double is deprecated: see corresponding Javadoc for more information.
      

       The ticket aims to replace the constructors by the valueOf methods, or maybe by other ways.

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: