Maxim Gekk created SPARK-30676:
----------------------------------

             Summary: Eliminate warnings from deprecated constructors of 
java.lang.Integer and java.lang.Double
                 Key: SPARK-30676
                 URL: https://issues.apache.org/jira/browse/SPARK-30676
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core
    Affects Versions: 3.0.0
            Reporter: Maxim Gekk


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:
{code}
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.
{code}
 The ticket aims to replace the constructors by the valueOf methods, or maybe 
by other ways.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to