[错误]: 死代码将 @Override 方法标记为死代码,并将测试命名文件外的 JUnit 生命周期方法标记为死代码

作者: aala-conga创建于 2026年9月17日更新于 2026年9月17日

Dead code: 2 items; showing 2 [Function] Widget (src/main/java/demo/Widget.java:8) [Function] hashCode (src/main/java/demo/Widget.java:16) In Reproducer 1, hashCode carries @Override. Its caller is Object's contract - HashMap, Objects.hash, anything that hashes a Widget. It is not dead, and no hierarchy walk can rescue it, because the base is the JDK and therefore outside the graph. (Widget at line 8 is the constructor; that is a separate defect, noted at the end.)

内容来源: tirth8205/code-review-graph