Fix for KT-6424
Remove "SuppressWarnings" and "//noinspection" on java to kotlin conversion
This commit is contained in:
@@ -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,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)
|
||||
|
||||
Reference in New Issue
Block a user