Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3157#discussion_r21961990
  
    --- Diff: core/src/test/java/org/apache/spark/JavaAPISuite.java ---
    @@ -1556,7 +1558,7 @@ public void testGuavaOptional() {
       @Test
       public void testRegisterKryoClasses() {
         SparkConf conf = new SparkConf();
    -    conf.registerKryoClasses(new Class[]{ Class1.class, Class2.class });
    +    conf.registerKryoClasses(new Class<?>[]{ Class1.class, Class2.class });
    --- End diff --
    
    Hm, no it should show up by default, and I think this goes back to Java 6. 
I'm using 8 though. Here's a simple class that is similar to this stanza that 
triggers it for me:
    
    ```
    public class Foo {
            void bar() {
                    foo(new Class[] { Foo.class });
            }
            void foo(Class<Foo>[] classes) {}
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to