Create from usage: Using UnsupportedOperationException for the file template instead.
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user