mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-179871 Automatically use nullable annotations in constructor generation
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ public class GenerateConstructorHandler extends GenerateMembersHandlerBase {
|
||||
parmName = javaStyle.suggestUniqueVariableName(parmName, dummyConstructor, true);
|
||||
PsiParameter parm = factory.createParameter(parmName, field.getType(), aClass);
|
||||
|
||||
NullableNotNullManager.getInstance(project).copyNotNullAnnotation(field, parm);
|
||||
NullableNotNullManager.getInstance(project).copyNullableOrNotNullAnnotation(field, parm);
|
||||
|
||||
if (constructor.isVarArgs()) {
|
||||
final PsiParameterList parameterList = constructor.getParameterList();
|
||||
|
||||
Reference in New Issue
Block a user