New J2K: use mutable lists for storing comments
This commit is contained in:
@@ -5,10 +5,11 @@ internal class A // end of primary constructor body
|
||||
// this is a secondary constructor 2
|
||||
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
|
||||
|
||||
// this is a secondary constructor 1
|
||||
|
||||
// this is a primary constructor
|
||||
|
||||
|
||||
// this is a primary constructor
|
||||
// this is a secondary constructor 1
|
||||
|
||||
|
||||
// end of secondary constructor 1 body
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import java.util.stream.Collectors
|
||||
|
||||
internal class Test {
|
||||
fun main(lst: List<Int>) {
|
||||
val newLst = /*before list*/lst/*after list*/.stream/*before stream*/()/* after stream*/
|
||||
val newLst = /*before list*/ lst/*after list*/.stream/*before stream*/()/* after stream*/
|
||||
.filter { x: Int -> x > 10 }
|
||||
.map { x: Int -> x + 2 }/*some comment*/.distinct/*another comment*/()/* one more comment */.sorted()/*another one comment*/
|
||||
.sorted(Comparator.naturalOrder())
|
||||
|
||||
Reference in New Issue
Block a user