HyukjinKwon edited a comment on issue #21455: [SPARK-24093][DStream][Minor]Make some fields of KafkaStreamWriter/In… URL: https://github.com/apache/spark/pull/21455#issuecomment-446943340 BTW, fields in class constructors is not visible without `val`. For instance, ```scala class A(fieldA: String) { } ``` generates: ```bash $ javap -private A.class Compiled from "A.scala" public class A { public A(java.lang.String); } ``` FYI, when `val` is added: ```bash $ javap -private A.class Compiled from "A.scala" public class A { private final java.lang.String fieldA; public java.lang.String fieldA(); public A(java.lang.String); } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
