Override/Implement: Implement JavaDoc/KDoc copying
#KT-8682 Fixed #KT-12735 Fixed (cherry picked from commit f4486be)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package foo;
|
||||
|
||||
public class A {
|
||||
/**
|
||||
* @return TEST
|
||||
*/
|
||||
public int foo() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// COPY_DOC
|
||||
|
||||
import foo.A
|
||||
|
||||
class B : A() {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// COPY_DOC
|
||||
|
||||
import foo.A
|
||||
|
||||
class B : A() {
|
||||
/**
|
||||
* @return TEST
|
||||
*/
|
||||
override fun foo(): Int {
|
||||
<selection><caret>return super.foo()</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// COPY_DOC
|
||||
abstract class A {
|
||||
/**
|
||||
* @see TEST
|
||||
*/
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// COPY_DOC
|
||||
abstract class A {
|
||||
/**
|
||||
* @see TEST
|
||||
*/
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
/**
|
||||
* @see TEST
|
||||
*/
|
||||
override fun foo() {
|
||||
<selection><caret>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user