New J2K: rework Java code formatting collecting

#KT-33687 fixed
This commit is contained in:
Ilya Kirillov
2019-09-26 14:38:46 +03:00
parent 37ee81dfa1
commit f3b53a9532
43 changed files with 396 additions and 358 deletions
+4 -4
View File
@@ -3,12 +3,12 @@ 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*/
.map { x: Int -> x + 2 } /*some comment*/.distinct /*another comment*/() /* one more comment */.sorted() /*another one comment*/
.sorted(Comparator.naturalOrder())
.peek { x: Int? -> println(x) }.limit(1)
.skip(42)/*skipped*/
/*collecting one*/.collect/*collecting two */(Collectors.toList())/* cool */
.skip(42) /*skipped*/ /*collecting one*/
.collect /*collecting two */(Collectors.toList()) /* cool */
}
}