Monday, October 3, 2011

NetBeans: increasing your code awareness

Take a look at this snippet:

Now I'm sure that we're all familiar with the grey underline that tells us that a variable is not being used.
But look at the value "Robert" - NetBeans now tells you when you're not using a value that is assigned to an otherwise used variable.

Just a tidbit of what you can look forward to in the upcoming release of NetBeans :)

EDIT Try out all the new functionality in NetBeans 7.1 Beta

2 comments:

  1. Nice!,

    It's what Findbugs refers to as a dead store to a local variable.

    ReplyDelete
  2. Thanks for posting this! I'm trying to find information on Incontinent and this has definitely helped me in this process.

    ReplyDelete