Github user BryanCutler commented on the pull request:

    https://github.com/apache/spark/pull/9488#issuecomment-154256416
  
    I don't believe so, I tried the following which compiled and ran fine with 
Java 8, giving deprecation warnings
    
    ```java
            inputStream.foreachRDD(x -> {
                        x.foreach(i -> System.out.println(i.toString()));
                        return null;
                    }
            );
    
            inputStream.foreachRDD(new Function<JavaRDD<Integer>, Void>() {
                @Override
                public Void call(JavaRDD<Integer> x) {
    
                    x.foreach(new VoidFunction<Integer>() {
                        @Override
                        public void call(Integer i) {
                            System.out.println(i.toString());
                        }
                    });
    
                    return null;
                }
            });
    ```


---
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