Added quickfix for PLATFORM_CLASS_MAPPED_TO_KOTLIN.

This commit is contained in:
Jack Zhou
2013-02-19 12:43:36 -05:00
committed by Evgeny Gerashchenko
parent cee45f6a0a
commit 738a874334
12 changed files with 443 additions and 2 deletions
@@ -0,0 +1,24 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang
import java.lang as jl
fun <T> a() : Comparable<T>? {
return null
}
fun b() : Comparable<String> {
throw Exception()
}
fun c() : Comparable<String> {
throw Exception()
}
fun d() : Comparable<String>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,24 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang
import java.lang as jl
fun <T> a() : Comparable<T>? {
return null
}
fun b() : Comparable<String> {
throw Exception()
}
fun c() : Comparable<String> {
throw Exception()
}
fun d() : Comparable<String>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,24 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang
import java.lang as jl
fun <T> a() : Comparable<T>? {
return null
}
fun b() : Comparable<String> {
throw Exception()
}
fun c() : Comparable<String> {
throw Exception()
}
fun d() : Comparable<String>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,24 @@
// "Change all usages of 'java.lang.Iterable<T>' in this file to a Kotlin class" "true"
import java.lang.*
import java.lang
import java.lang as jl
fun <T> a() : Iterable<T>? {
return null
}
fun b() : Iterable<String>? {
return null
}
fun c() : Iterable<String> {
throw Exception()
}
fun d() : Iterable<String>? {
return null
}
fun e() : Iterable<String>? {
throw Exception()
}
@@ -0,0 +1,27 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang.Comparable
import java.lang.Comparable
import java.lang.Comparable as Foo
import java.lang
import java.lang as jl
fun <T> a() : java.lang.Comparable<T><caret>? {
return null
}
fun b() : lang.Comparable<String> {
throw Exception()
}
fun c() : Foo<String> {
throw Exception()
}
fun d() : jl.Comparable<String>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,27 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang.Comparable
import java.lang.Comparable
import java.lang.Comparable as Foo
import java.lang
import java.lang as jl
fun <T> a() : java.lang.Comparable<T>? {
return null
}
fun b() : lang.Comparable<String> {
throw Exception()
}
fun c() : Foo<String> {
throw Exception()
}
fun d() : jl.Comparable<String><caret>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,27 @@
// "Change all usages of 'java.lang.Comparable<T>' in this file to 'jet.Comparable<T>'" "true"
import java.lang.*
import java.lang.Comparable
import java.lang.Comparable
import java.lang.Comparable<caret> as Foo
import java.lang
import java.lang as jl
fun <T> a() : java.lang.Comparable<T>? {
return null
}
fun b() : lang.Comparable<String> {
throw Exception()
}
fun c() : Foo<String> {
throw Exception()
}
fun d() : jl.Comparable<String>? {
return null
}
fun e() : Comparable<String>? {
throw Exception()
}
@@ -0,0 +1,27 @@
// "Change all usages of 'java.lang.Iterable<T>' in this file to a Kotlin class" "true"
import java.lang.*
import java.lang.Iterable
import java.lang.Iterable
import java.lang.Iterable as Foo
import java.lang
import java.lang as jl
fun <T> a() : java.lang.Iterable<T>? {
return null
}
fun b() : lang.Iterable<String>? {
return null
}
fun c() : Foo<String><caret> {
throw Exception()
}
fun d() : jl.Iterable<String>? {
return null
}
fun e() : Iterable<String>? {
throw Exception()
}