- final TreeBasedTable<String, Optional<Revision>, SourceSpecificContext> libSourcesTable) {
- return requiredSource.getRevision().isPresent()
- ? libSourcesTable.get(requiredSource.getName(), requiredSource.getRevision())
- : getLatestRevision(libSourcesTable.row(requiredSource.getName()));
+ final TreeBasedTable<Unqualified, Optional<Revision>, SourceSpecificContext> libSourcesTable) {
+ final var revision = requiredSource.revision();
+ return revision != null ? libSourcesTable.get(requiredSource.name(), Optional.of(revision))
+ : getLatestRevision(libSourcesTable.row(requiredSource.name()));