Java to Kotlin converter: correct nullability in signatures of overrides
#KT-5269 Fixed
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package javaApi;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
|
||||
public @interface Anon1 {
|
||||
String[] value();
|
||||
String[] stringArray();
|
||||
@@ -43,3 +48,11 @@ public @interface Anon8 {
|
||||
public enum E {
|
||||
A, B, C
|
||||
}
|
||||
|
||||
class Base {
|
||||
public @Nullable String foo(@Nullable String s) { return s; }
|
||||
}
|
||||
|
||||
class Derived extends Base {
|
||||
public String foo(String s) { return s; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user