You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2018/12/13 11:57:35 UTC

[GitHub] HyukjinKwon commented on issue #21455: [SPARK-24093][DStream][Minor]Make some fields of KafkaStreamWriter/In…

HyukjinKwon commented 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;
     private 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org