Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Here is the guide to its implementation and how it can be improved and tested.
For interactive Kotlin execution, an instance of `KotlinRepl` is created.
To set REPL properties (such as classpath, generated classes output directory, max result, etc.),
pass `KotlinReplProperties` to its constructor. For example:
```$java
```java
KotlinReplProperties replProperties = new KotlinReplProperties()
.maxResult(1000)
.shortenTypes(true);
Expand All @@ -22,7 +22,7 @@ making the receiver's fields and methods accessible.

To add your variables/functions, extend `KotlinReceiver` class (in separate file), declare your fields and methods, and pass an instance of it to
`KotlinReplProperties`. Example:
```$java
```java
// In separate file:
class CustomReceiver extends KotlinReceiver {
public int myValue = 1 // will be converted to Kotlin "var myValue: Int"
Expand Down Expand Up @@ -80,4 +80,4 @@ can not use things like `forEach` because of ambiguity between `Iterable<?>.forE
(`foreach` from Spark's API does work, though).
* The scoped mode for Kotlin Spark Interpreter currently has issues with having the same class output directory
for different intepreters, leading to overwriting classes. Adding prefixes to generated classes or putting them
in separate directories leads to `ClassNotFoundException` on Spark executors.
in separate directories leads to `ClassNotFoundException` on Spark executors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changes did you make on this line ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, i think the Github editor added a new line at the end of file