Dev Tools & Micro-SaaS
Stack Exchange · 2024-08-09
Find Java dead code at runtime — static analysis flags too much
运行时才能真正发现 Java 死代码,静态分析误报太多
At a glance · 30-second read
- WhoStack Exchange · 2024-08-09 · 2 upvotes · 1 replies
- The askFind Java dead code at runtime — static analysis flags too much
- The openingAn instrumentation agent recording class/method hits in staging or production to produce a never-executed report with deletion suggestions.
What was actually said
“Reflection, Spring injection and dynamic proxies make static analysis mark live code as dead. I want coverage-based dead-code reports from real execution paths.”
— Stack Exchange · 2024-08-09 · softwarerecs.stackexchange.com/questions/90971/softw…
Background and pain
The pain
When cleaning legacy Java services, static-tool false positives make teams afraid to delete anything; only runtime evidence gives confidence.
A buildable angle
The opening
An instrumentation agent recording class/method hits in staging or production to produce a never-executed report with deletion suggestions.
How to validate it
- Read the whole thread and note the recurring scenarios — repetition is the density of the need.
- Search existing tools around "java / dead code" and check which single step they actually cover.
- Put up a one-line landing page, share it back to Stack Exchange, and see whether anyone asks about pricing.
Existing options
JaCoCo静态工具
More threads on this pain
- Dev productivity tools you would pay for — what do people actually buy?Hacker News · 2023-06-10
- Why is there no P2P streaming protocol like BitTorrent?Hacker News · 2025-04-14
- Affordable alternatives to Google Play for distributing an Android app to ~50 peopleHacker News · 2021-12-12
- Why is there no performant remote desktop for Mac/Linux?Hacker News · 2022-08-19
- AI codes the logic fine but the UI still looks bad, even with detailed visual instructionsCursor Forum · 2026-08-20
From the thread · top comments
Open the source thread