Java to Kotlin converter: big refactoring of code generation to never allow end of line comments to stick together with further code
#KT-4421 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
//file
|
||||
class A {
|
||||
private boolean isOpen = true; // ideally should be atomic boolean
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A() {
|
||||
private var isOpen: Boolean = true // ideally should be atomic boolean
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//file
|
||||
class C {
|
||||
private final int p1; // field p1
|
||||
|
||||
/**
|
||||
* Field myP2
|
||||
*/
|
||||
private final int myP2;
|
||||
|
||||
/* Field p3 */ public int p3;
|
||||
|
||||
public C(int p1 /* parameter p1 */, int p2, int p3) {
|
||||
this.p1 = p1;
|
||||
myP2 = p2;
|
||||
this.p3 = p3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class C(private val p1: Int /* parameter p1 */ // field p1
|
||||
,
|
||||
/**
|
||||
* Field myP2
|
||||
*/
|
||||
private val myP2: Int, /* Field p3 */ public var p3: Int)
|
||||
Reference in New Issue
Block a user