未使用的类和接口¶
ID: java/unused-reference-type
Kind: problem
Security severity:
Severity: recommendation
Precision: high
Tags:
- maintainability
- useless-code
- external/cwe/cwe-561
Query suites:
- java-security-and-quality.qls
程序中任何地方都未使用的非公共类或接口可能会导致程序员浪费时间和精力来维护和记录它。
建议¶
确保从程序中删除冗余类型。