mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 02:28:49 +00:00
Detects common cases of unreachable/dead code. For generated javacc code, the check is disabled via SuppressWarnings("unused") because javacc generates strange/bad code such as: if ("" == null) For TestStressNRTReplication's startNode() method, the check is also disabled because analysis folds the "test evilness controls" which are static final constants. This itself is a WTF, shouldn't we instead randomize these evil things in our tests rather than hardcoding them to specific values?