如何查看The value of the local variable is not used
和The value of the field is not used
使用Checkstyle?在Eclipse中有一個關於這個的警告。但Checkstyle沒有(我使用sun_checks.xml
,稍作修改)。如何在Checkstyle中檢查「局部變量/字段的值未使用」?
我試着寫我自己的支票,但作爲一個新手,才發現如何(使用TokenTypes.VARIABLE_DEF
)來計算的變量聲明,但我不知道如何找到這些變量和字段即使用 ...