-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug, improve property errors on Kotlin.
- Loading branch information
Showing
12 changed files
with
165 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/java/examples/java/receiver/kotlindefaultparameter/Correct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package examples.java.receiver.kotlindefaultparameter; | ||
|
||
public class Correct { | ||
private String value; | ||
|
||
public Correct(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public void setValue(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/examples/java/receiver/kotlindefaultparameter/Design0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package examples.java.receiver.kotlindefaultparameter; | ||
|
||
public class Design0 { | ||
private String value; | ||
|
||
public Design0(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public void setValue(String setValue) { | ||
value = setValue; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/test/java/examples/java/receiver/kotlindefaultparameter/Design1.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package examples.java.receiver.kotlindefaultparameter | ||
|
||
class Design1(var value: String = "") |
17 changes: 17 additions & 0 deletions
17
src/test/java/examples/java/receiver/kotlinvalvar/Correct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package examples.java.receiver.kotlinvalvar; | ||
|
||
public class Correct { | ||
private String value; | ||
|
||
public Correct(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public void setValue(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package examples.java.receiver.kotlinvalvar | ||
|
||
class Design0(val value: String?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package examples.java.receiver.kotlinvalvar | ||
|
||
@Suppress("UnusedPrivateMember") | ||
class Design1(private val value: String?) |
13 changes: 13 additions & 0 deletions
13
src/test/java/examples/java/receiver/kotlinvarval/Correct.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package examples.java.receiver.kotlinvarval; | ||
|
||
public class Correct { | ||
private String value; | ||
|
||
public Correct(String setValue) { | ||
value = setValue; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package examples.java.receiver.kotlinvarval | ||
|
||
class Design0(var value: String?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package examples.java.receiver.kotlinvarval | ||
|
||
class Design1(val value: String?) { | ||
var whatever: Int = 0 | ||
} |