mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
create field from parameter: when field would be final and parameter is NotNull then the field should be also @NotNull (IDEA-74136)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Create Field For Parameter 'name'" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class TestBefore {
|
||||
|
||||
@NotNull
|
||||
private final String myName;
|
||||
|
||||
public TestBefore(@NotNull String name) {
|
||||
super();
|
||||
myName = name;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create Field For Parameter 'name'" "true"
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class TestBefore {
|
||||
|
||||
public TestBefore(@NotNull String name<caret>) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user