Fix for KT-6424

Remove "SuppressWarnings" and "//noinspection" on java to kotlin conversion
This commit is contained in:
Simon Ogorodnik
2016-10-12 17:49:32 +03:00
parent 47b3420a65
commit 155cfcb1f8
9 changed files with 77 additions and 15 deletions
@@ -0,0 +1,16 @@
@SuppressWarnings("ALL")
public class A{
@SuppressWarnings("ALL")
public A(){
}
@SuppressWarnings("ALL")
public int b = 0;
@SuppressWarnings("ALL")
public void a(@SuppressWarnings("ALL") int i){
}
}
@@ -0,0 +1,8 @@
class A {
var b = 0
fun a(i: Int) {
}
}
@@ -0,0 +1,6 @@
public class Check {
public void a() {
//noinspection RedundantStringConstructorCall
Integer d = (Integer) (Object)(new String());
}
}
@@ -0,0 +1,6 @@
class Check {
fun a() {
val d = String() as Int
}
}
@@ -1,3 +1 @@
import java.lang.SuppressWarnings
internal class C(@Deprecated("") private val p1: Int, @Deprecated("") private val myP2: Int, @Deprecated("") @SuppressWarnings("x") var p3: Int)
internal class C(@Deprecated("") private val p1: Int, @Deprecated("") private val myP2: Int, @Deprecated("") var p3: Int)