Create from usage: Using UnsupportedOperationException for the file template instead.
This commit is contained in:
@@ -1 +1 @@
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
@@ -3,7 +3,7 @@ class Foo<T> {
|
||||
fun component1(): Int { return 0 }
|
||||
fun component2(): Int { return 0 }
|
||||
fun component3(): Any {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
@@ -3,7 +3,7 @@ class Foo<T> {
|
||||
fun component1(): Int { return 0 }
|
||||
fun component2(): Int { return 0 }
|
||||
fun component3(): String {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
@@ -4,6 +4,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: T): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun get(s: String, w: T): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun get(s: String, w: T): Any {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
|
||||
@@ -8,6 +8,6 @@ class Foo<T> {
|
||||
bar(z)
|
||||
}
|
||||
fun <V> get(s: String, w: ArrayList<V>): String {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@ fun x (y: Any) {
|
||||
val z: Any = y[""]
|
||||
}
|
||||
fun Any.get(s: String): Any {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
@@ -4,6 +4,6 @@ class Foo<T> {
|
||||
val z: Iterable<S> = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class Foo<T, S: Iterable<T>> {
|
||||
val z: U = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun <V> get(s: String, w: Iterable<V>): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ class Foo<T> {
|
||||
}
|
||||
}
|
||||
fun <E, V> ArrayList<E>.get(s: String, w: ArrayList<V>): Boolean {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
@@ -6,6 +6,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun <V> get(s: String, w: ArrayList<V>): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: T): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ class Foo<S> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: S): S {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ class FooIterator<T> {
|
||||
throw Exception("not implemented")
|
||||
}
|
||||
fun hasNext(): Boolean {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
|
||||
@@ -4,7 +4,7 @@ class FooIterator<T> {
|
||||
throw Exception("not implemented")
|
||||
}
|
||||
fun hasNext(): Boolean {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'iterator' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun iterator(): Iterator<T> {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'iterator' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun iterator(): Iterator<String> {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class FooIterator<T> {
|
||||
fun hasNext(): Boolean { return false }
|
||||
fun next(): Int {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class FooIterator<T> {
|
||||
fun hasNext(): Boolean { return false }
|
||||
fun next(): T {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
|
||||
@@ -4,6 +4,6 @@ class Foo<T> {
|
||||
y["", w] = w
|
||||
}
|
||||
fun set(s: String, w: T, value: T) {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ class Foo<T> {
|
||||
}
|
||||
}
|
||||
fun <T> Any.set(s: String, w: ArrayList<T>, value: ArrayList<T>) {
|
||||
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
}
|
||||
Reference in New Issue
Block a user