Misc: Use TODO() consistently in implementation stubs

#KT-13589 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-25 17:23:11 +03:00
parent 639186ddae
commit 89c39b9762
34 changed files with 119 additions and 53 deletions
@@ -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.
}
}
@@ -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.
}
@@ -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) {
}
}
@@ -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
@@ -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.
}
@@ -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.
@@ -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.
@@ -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.
}
@@ -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.
}
@@ -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.
}
@@ -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) {}
@@ -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.
}
@@ -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.
}
@@ -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,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,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
@@ -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.
}
@@ -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
View File
@@ -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
View File
@@ -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) {
}
}
@@ -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