[ODLPARENT-116] Use lastnpe.org stuff to help avoiding the infamous NullPointerException in OpenDaylight code Created: 15/Sep/17  Updated: 25/Jun/20

Status: Confirmed
Project: odlparent
Component/s: General
Affects Version/s: 2.0.5
Fix Version/s: None

Type: Improvement Priority: Low
Reporter: Michael Vorburger Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by ODLPARENT-117 nexus.opendaylight.org to proxy an ex... Resolved

 Description   

This is an umbrella / parent issue for me to link http://www.lastnpe.org related work to.

For example https://git.opendaylight.org/gerrit/#/c/47370/ et al.

This work is NOT limited to Eclipse IDE users, but very much includes as a goal to have the CLI mvn build pick up on possible NPE violations as well (and therefore e.g. fail Gerrits introducing regressions). Users of the Eclipse IDE however may get such violations reported while coding, for their convenience.

PS: This is to be seen as complementary to similar static code analysis for NPE offer e.g. by IDEA - but there in the IDE only, for one off looks by interested developers and occasional sporadic fixes; not build enforced such as this will be.

Just like our Checkstyle, FindBugs (and maybe error-prone some day) support offered to all ODL projects by odlparent, I'm anticipating this will be very much of an "opt in" kinda thing.



 Comments   
Comment by Michael Vorburger [ 19/Sep/17 ]

> this will be very much of an "opt in" kinda thing

https://bugs.opendaylight.org/show_bug.cgi?id=9170#c6 clarifies intention to go about this gradually and staged - in-IDE, optional -P profile for local builds and only later Gerrit Jenkins enforcement.

Comment by Michael Vorburger [ 04/Oct/17 ]

https://git.opendaylight.org/gerrit/#/q/topic:bug/9169

Generated at Wed Feb 07 20:27:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.