Finish off old deprecated function/extension function classes
This reverts commit d14e5b8a72.
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
import kotlin.Function0;
|
||||
import kotlin.Function1;
|
||||
import kotlin.KotlinPackage;
|
||||
import kotlin.ExtensionFunction0;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
public class DeprecatedFunctionClasses {
|
||||
void f1(Function0 f) {
|
||||
f.invoke();
|
||||
}
|
||||
|
||||
void f2() {
|
||||
KotlinPackage.map(new int[]{}, new Function1<Integer, Object>() {
|
||||
@Override
|
||||
public Object invoke(Integer integer) {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void f3(Function2<String, String, String> f) {
|
||||
}
|
||||
|
||||
void f4(kotlin.Function0<Unit> g) {
|
||||
}
|
||||
|
||||
void f5(kotlin.jvm.functions.Function1 f) {
|
||||
}
|
||||
|
||||
void f6(ExtensionFunction0<String, Integer> e) {
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
import kotlin.KotlinPackage;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
public class DeprecatedFunctionClasses {
|
||||
void f1(Function0 f) {
|
||||
f.invoke();
|
||||
}
|
||||
|
||||
void f2() {
|
||||
KotlinPackage.map(new int[]{}, new Function1<Integer, Object>() {
|
||||
@Override
|
||||
public Object invoke(Integer integer) {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void f3(Function2<String, String, String> f) {
|
||||
}
|
||||
|
||||
void f4(Function0<Unit> g) {
|
||||
}
|
||||
|
||||
void f5(kotlin.jvm.functions.Function1 f) {
|
||||
}
|
||||
|
||||
void f6(Function1<String, Integer> e) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user