New J2K: rework Java code formatting collecting
#KT-33687 fixed
This commit is contained in:
+5
-13
@@ -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
@@ -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
|
||||
//
|
||||
}
|
||||
Reference in New Issue
Block a user