KT-4344 "Overridden method parameters are not annotated" warnings from Java
#KT-4344 Fixed
This commit is contained in:
+2
-1
@@ -1,12 +1,13 @@
|
||||
package foo;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class JavaClass {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public void bar(String price) {
|
||||
public void bar(@Nullable String price) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class Small {
|
||||
void test(@NotNull String hi) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public class Foo: Small() {
|
||||
override fun test(hi: String) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user