java: fix deadcode tests

GitOrigin-RevId: 8d170f38638a45e7a4304894e218ff0fbc02d8d9
This commit is contained in:
Bas Leijdekkers
2024-04-22 11:58:00 +02:00
committed by intellij-monorepo-bot
parent 3b492a9147
commit 4c7002e81c
8 changed files with 69 additions and 8 deletions

View File

@@ -168,7 +168,7 @@ public class DeadHTMLComposer extends HTMLComposerImpl {
buf.append(AnalysisBundle.message("inspection.dead.code.problem.synopsis29.method", nRefs) );
}
}
} else if (refClass instanceof RefClassImpl && ((RefClassImpl)refClass).isSuspicious()) {
} else if (refClass instanceof RefClassImpl && ((RefClassImpl)refClass).isSuspicious() && !refClass.isUtilityClass()) {
if (method.isAbstract() && !refClass.isInterface()) {
buf.append(AnalysisBundle.message("inspection.dead.code.problem.synopsis14"));
} else {