Java to Kotlin converter: special conversion of some Collections methods
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//file
|
||||
import java.util.*;
|
||||
|
||||
class A {
|
||||
Map<String, String> foo() {
|
||||
List<String> list1 = Collections.emptyList();
|
||||
List<Integer> list2 = Collections.singletonList(1);
|
||||
Set<String> set1 = Collections.emptySet();
|
||||
Set<String> set2 = Collections.singleton("a");
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user