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
+5 -13
View File
@@ -1,17 +1,12 @@
// This is an end-of-line comment
/*
This is a block comment
*/
/*doc comment of class*/
//one line comment of class
//another one
/*another doc*/
internal class C {
// This is a class comment
internal class C { // This is a class comment
/**
* This is a field doc comment.
@@ -21,8 +16,7 @@ internal class C {
/**
* This is a function doc comment.
*/
fun foo() {
/* This is a function comment */
fun foo() { /* This is a function comment */
}
//simple one line comment for function
@@ -43,8 +37,6 @@ internal class C {
/** of
*/
//
/**
* different
*/
@@ -55,13 +47,13 @@ internal class C {
/** of
*/
//
/**
* different
*/
//comments
var l = 0
/*two*/ /*comments*//*line*/
/*two*/
/*comments*/
/*line*/
var z = 0
}
+3 -6
View File
@@ -5,10 +5,6 @@ class TestMutltipleCtorsWithJavadoc
*/(private val x: String?) {
private var y: String? = null
// ---
// Constructors
//
/**
* Javadoc for 2nd ctor
* @param x
@@ -17,6 +13,7 @@ class TestMutltipleCtorsWithJavadoc
constructor(x: String?, y: String?) : this(x) {
this.y = y
}
// ---
// Constructors
//
}