Create from usage: Renamed all references of 'method' to 'function'.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun x (y: Foo<Iterable<T>>) {
|
||||
val z: Iterable<T> = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: T): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun get(s: String, w: T): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions 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"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun get(s: String, w: T): Any {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
@@ -8,6 +8,6 @@ class Foo<T> {
|
||||
bar(z)
|
||||
}
|
||||
fun <V> get(s: String, w: ArrayList<V>): String {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
fun x (y: Any) {
|
||||
val z: Any = y[""]
|
||||
}
|
||||
fun Any.get(s: String): Any {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <S> x (y: Foo<Iterable<S>>) {
|
||||
val z: Iterable<S> = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T, S: Iterable<T>> {
|
||||
fun <U> x (y: Foo<U, Iterable<U>>) {
|
||||
val z: U = y[""]
|
||||
}
|
||||
fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <T, V> x (y: Foo<Iterable<T>>, w: Iterable<V>) {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun <V> get(s: String, w: Iterable<V>): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
@@ -7,5 +7,5 @@ class Foo<T> {
|
||||
}
|
||||
}
|
||||
fun <E, V> ArrayList<E>.get(s: String, w: ArrayList<V>): Boolean {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
@@ -6,6 +6,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun <V> get(s: String, w: ArrayList<V>): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
@@ -6,6 +6,6 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: T): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<S> {
|
||||
@@ -6,6 +6,6 @@ class Foo<S> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
fun get(s: String, w: S): S {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created methods use File | Settings | File Templates.
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun x (y: Foo<Iterable<T>>) {
|
||||
val z: Iterable<T> = y<caret>[""]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
val z: Iterable<T> = y<caret>["", w]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T>
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
val z: Iterable<T> = y<caret>["", w]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T>
|
||||
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
|
||||
val z = y<caret>["", w]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
fun x (y: Any) {
|
||||
val z: Any = y<caret>[""]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <S> x (y: Foo<Iterable<S>>) {
|
||||
val z: Iterable<S> = y<caret>[""]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T, S: Iterable<T>> {
|
||||
fun <U> x (y: Foo<U, Iterable<U>>) {
|
||||
val z: U = y<caret>[""]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <T, V> x (y: Foo<Iterable<T>>, w: Iterable<V>) {
|
||||
val z: Iterable<T> = y<caret>["", w]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
class Foo<T> {
|
||||
fun <T, V> x (y: java.util.ArrayList<T>, w: java.util.ArrayList<V>) {
|
||||
val z: java.util.ArrayList<T>? = if (y<caret>["", w]) null else null
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<T> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create method 'get' from usage" "true"
|
||||
// "Create function 'get' from usage" "true"
|
||||
import java.util.ArrayList
|
||||
|
||||
class Foo<S> {
|
||||
|
||||
Reference in New Issue
Block a user