Bug 530978 - [null] Add @Nullable annotations to jdt core dom API
Summary: [null] Add @Nullable annotations to jdt core dom API
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-09 17:36 EST by Jean-Noel Rouvignac CLA
Modified: 2024-04-28 05:18 EDT (History)
1 user (show)

See Also:


Attachments
Add the @Nullable annotation (138.92 KB, patch)
2018-02-09 17:36 EST, Jean-Noel Rouvignac CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Noel Rouvignac CLA 2018-02-09 17:36:00 EST
Created attachment 272622 [details]
Add the @Nullable annotation

It is all too easy to forget adding null-checks after calling the many methods possibly returning null in the JDT core dom API.

Adding @Nullable annotations and enabling compiler warnings in consumer projects would allow catching these simple mistakes right when the code is written.
Comment 1 Eclipse Genie CLA 2020-05-16 11:55:58 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Stephan Herrmann CLA 2020-05-16 16:41:38 EDT
.
Comment 3 Eclipse Genie CLA 2022-05-08 17:53:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2024-04-28 05:18:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.