mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix @NotNull instrumentation for enum constructor parameters with ASM 3.3 (IDEA-56943); move NotNullVerifyingInstrumenterTest to java-tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public enum EnumConstructor {
|
||||
Value("label");
|
||||
|
||||
private final String label;
|
||||
|
||||
EnumConstructor(@NotNull String label) {
|
||||
this.label = label;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class MultipleReturns {
|
||||
@NotNull public Object test(int i) {
|
||||
if (i == 0) return null;
|
||||
if (i == 1) return null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class SimpleReturn {
|
||||
@NotNull public Object test() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user