Find all unused variable

前端 未结 4 1322
鱼传尺愫
鱼传尺愫 2021-02-08 21:36

Normally it\'s easy to see unused variables in Netbeans, just a grey squiggly line.

But how would I find all of these unused variables in my project or of a single clas

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 22:10

    In Eclipse, that gray squiggly line is a yellow squiggly line called a Warning. Then the warning is propagated up to the package level, and up to the project level (such that your project is almost always underlined in yellow with a warning icon). Anyway it really helps you see which source files have warnings in them.

    Then your task is to solve every warning in the entire project, and you will have caught the unhandled variables.

    I assume netbeans has the same feature somewhere.

提交回复
热议问题