Skip to content

Commit

Permalink
feat(java analyzer): log error when CU VName has empty corpus (#5303)
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Jun 9, 2022
1 parent f557a10 commit c22d736
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -107,13 +107,14 @@ public void analyzeCompilationUnit(JavaCompilationDetails details) throws Analys
});
}
CompilationUnit compilation = details.getCompilationUnit();
VName cuVName = compilation.getVName();
if (cuVName.getCorpus().isEmpty()) {
logger.atWarning().log(
"Analyzer received compilation unit vname with empty corpus: %s", cuVName.toString());
}
entrySets =
new JavaEntrySets(
getStatisticsCollector(),
emitter,
compilation.getVName(),
compilation.getRequiredInputList(),
config);
getStatisticsCollector(), emitter, cuVName, compilation.getRequiredInputList(), config);
try {
super.analyzeCompilationUnit(details);
} finally {
Expand Down

0 comments on commit c22d736

Please sign in to comment.