@Nullable/@NotNull integration
Playing with those annotations, it seems it's not really finished.
I have
---
public class Test
{
@NotNull private Object contained;
}
---
Now I press Alt-Insert and choose "Constructor". Also selecting the
contained field. IDEA then generates:
---
public Test(Object contained)
{
this.contained=contained;
}
---
Shouldn't the parameter also be annotated as @NotNull?
Same for getter/setter/...
请先登录再写评论。
Please file a feature request to JIRA.
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
Done. http://www.jetbrains.net/jira/browse/IDEA-4177
Maxim Shafirov (JetBrains) schrieb: