Skip to content

Commit

Permalink
Merge pull request quarkusio#28125 from damienb-opt/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Sep 22, 2022
2 parents e5643b2 + cb52957 commit 6649e34
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ public Index apply(PathVisit visit) {
}
try (InputStream in = Files.newInputStream(visit.getPath())) {
IndexReader reader = new IndexReader(in);
if (reader.getIndexVersion() < REQUIRED_INDEX_VERSION) {
log.warnf(
"Re-indexing %s - at least Jandex 2.1 must be used to index an application dependency",
visit.getPath());
return null;
}
try {
if (reader.getIndexVersion() < REQUIRED_INDEX_VERSION) {
log.warnf(
"Re-indexing %s - at least Jandex 2.1 must be used to index an application dependency",
visit.getPath());
return null;
}
return reader.read();
} catch (UnsupportedVersion e) {
throw new UnsupportedVersion(
Expand Down

0 comments on commit 6649e34

Please sign in to comment.