Misc: Use TODO() consistently in implementation stubs
#KT-13589 Fixed
This commit is contained in:
@@ -6,7 +6,7 @@ interface A {
|
||||
fun some() : A {
|
||||
return object : A {
|
||||
override val method: () -> Unit?
|
||||
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ interface A {
|
||||
|
||||
class B : A {
|
||||
override val String.prop: Int
|
||||
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ interface A {
|
||||
|
||||
class B : A {
|
||||
override var Int.foo: Double
|
||||
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
+8
-8
@@ -11,19 +11,19 @@ interface T {
|
||||
|
||||
class C : T {
|
||||
override val a1: Byte
|
||||
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a2: Short
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a3: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a4: Long
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a5: Float
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a6: Double
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a7: Char
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
override val a8: Boolean
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
@@ -4,5 +4,5 @@ interface T {
|
||||
|
||||
class GC() : T {
|
||||
override val v: Int
|
||||
get() = <selection><caret>throw UnsupportedOperationException()</selection>
|
||||
get() = <selection><caret>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class SomeTest : Test {
|
||||
}
|
||||
|
||||
override val testProp: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
/**
|
||||
* test
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ abstract class Owner {
|
||||
}
|
||||
|
||||
fun Owner.f() {
|
||||
<caret><selection>throw UnsupportedOperationException()</selection>
|
||||
<caret><selection>TODO("not implemented")</selection> //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ abstract class Owner {
|
||||
}
|
||||
|
||||
val Owner.p: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
Vendored
+1
-1
@@ -4,4 +4,4 @@ class Owner {
|
||||
}
|
||||
|
||||
val Owner.p: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ class Owner {
|
||||
}
|
||||
|
||||
var Owner.p: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
throw UnsupportedOperationException()
|
||||
TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -6,5 +6,5 @@ class Owner {
|
||||
var Owner.p: Int
|
||||
get() = 1
|
||||
set(value) {
|
||||
<caret><selection>throw UnsupportedOperationException()</selection>
|
||||
<caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ class Owner {
|
||||
var Owner.p: Int
|
||||
get() { return 1 }
|
||||
set(value) {
|
||||
<caret><selection>throw UnsupportedOperationException()</selection>
|
||||
<caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,5 +5,5 @@ class Owner {
|
||||
}
|
||||
|
||||
var Owner.p: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(v) {}
|
||||
|
||||
+1
-1
@@ -8,5 +8,5 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
+1
-1
@@ -8,5 +8,5 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
Vendored
+1
-1
@@ -8,7 +8,7 @@ enum class E : T<Int> {
|
||||
A, B, C;
|
||||
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
val bar = 1
|
||||
|
||||
|
||||
+3
-3
@@ -3,13 +3,13 @@
|
||||
enum class E {
|
||||
A {
|
||||
override val foo: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}, B {
|
||||
override val foo: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}, C {
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
};
|
||||
|
||||
abstract val foo: Int
|
||||
|
||||
+3
-3
@@ -3,13 +3,13 @@
|
||||
enum class E(n: Int) {
|
||||
A(1) {
|
||||
override val foo: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}, B(2) {
|
||||
override val foo: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}, C(3) {
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
};
|
||||
|
||||
abstract val foo: Int
|
||||
|
||||
+2
-2
@@ -6,13 +6,13 @@ interface T<X> {
|
||||
|
||||
class U : T<String> {
|
||||
override val foo: String
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
|
||||
class V : T<Int> {
|
||||
override val foo: Int
|
||||
get() = <caret><selection>throw UnsupportedOperationException()</selection>
|
||||
get() = <caret><selection>TODO("not implemented")</selection> //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ interface A {
|
||||
}
|
||||
|
||||
fun A.foo(n: Int) {
|
||||
throw UnsupportedOperationException()
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@ private abstract class Base {
|
||||
|
||||
private class BaseImpl : Base() {
|
||||
override var x: Int
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ class Container {
|
||||
|
||||
class BaseImpl : Container.Base {
|
||||
override val x: Boolean
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
|
||||
override fun bar(z: Int): String {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
|
||||
@@ -9,7 +9,7 @@ class Container {
|
||||
|
||||
class BaseImpl : Base {
|
||||
override var z: Double
|
||||
get() = throw UnsupportedOperationException()
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
// WITH_RUNTIME
|
||||
open class A {
|
||||
open fun f(): Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates. }
|
||||
}
|
||||
class B : A() {
|
||||
<caret>override fun f(): Int = 5
|
||||
|
||||
Reference in New Issue
Block a user