![]() Returning to the NetBeans "null deference hint," another way to demonstrate that new hint in code is via use of the NetBeans annotation. This is a handy feature for following code flow for a certain variable within static code. Clicking on any of the greater-than signs expands possibilities of where that variable is next used. These correspond to places in the code where the highlighted variable is used (class it is used in, method it is used in, and conditional within method it is used in). On the bottom of the above image, there are three greater-than inequality signs ( > following the three respective labels "SevenThree", "processNullValue", and "if (valueStr != null). This is shown in the next screen snapshot.īefore looking at another example of this hint in action, I want to first point out the new code editor Breadcrumbs feature. ![]() The "null dereference" hint warns the developer when variables that might be null in certain cases are being dereferenced. ![]() NetBeans 7.3 introduces another useful hint with the " null Dereference" hint. I'm a big fan of NetBeans's hints supports as proven by my blog posts on Seven Indispensable NetBeans Java Hints, Seven NetBeans Hints for Modernizing Java Code, Creating a NetBeans 7.1 Custom Hint, NetBeans 7.2 beta: Faster and More Helpful, and NetBeans 7.1's Unused Assignment and Dead Branch Hints. However, in this post I look at some new features outside of Project Easel that I am happy to see now available in NetBeans. NetBeans 7.3, which is now available in Beta, is already probably best known for its Project Easel features.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |